Get horizontal scroll event in js

后端 未结 3 1849
春和景丽
春和景丽 2020-12-31 05:10

What I want to do, is to catch the event when the user is scrolling div horizontally. For vertical scroll I am using event \'mousewheel\' and it\'s working properly. ( horiz

3条回答
  •  春和景丽
    2020-12-31 06:05

    I don't have the proper setup to test this, but $.scroll() should do the trick. It's probably preferable to binding the mousewheel event as well. People use all means of scrolling ;)

提交回复
热议问题