iFrame Hide Scroll bars but still be able to scroll with mouse wheel

后端 未结 1 346
北海茫月
北海茫月 2021-01-07 06:50

What I am trying to do is make an iPhone simulator and just have a web page display in an iFrame. The scrollbars are taking up too much room so I want to hide them but stil

相关标签:
1条回答
  • 2021-01-07 07:50

    This should give you what you need to detect the mouse wheel movement: http://www.adomas.org/javascript-mouse-wheel/

    And this should give you what you need to control the scrolling of the page: http://www.mediacollege.com/internet/javascript/page/scroll.html

    Detect mouse wheel, determine the direction, scroll accordingly.

    0 讨论(0)
提交回复
热议问题