How I can stop vertical scroll by mouse

馋奶兔 提交于 2019-12-19 10:27:32

问题


I am using java script/Jquery in web browser.I made a custom horizontal scroll bar which is working with mouse wheel or mouse scroll.commonly mouse scroll works with vertical bar.So it conflict with my programmed horizontal scroll bar. I dont want to remove vertical bar completely but just only to disable when we scroll our mouse.If you make sense then please suggest.

Regards,

Deepak


回答1:


In your CSS:

overflow-y: hidden;

Might work



来源:https://stackoverflow.com/questions/6625343/how-i-can-stop-vertical-scroll-by-mouse

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!