Thursday, May 23, 2024
 Popular · Latest · Hot · Upcoming
165
rated 0 times [  168] [ 3]  / answers: 1 / hits: 16132  / 11 Years ago, sun, march 3, 2013, 12:00:00

I have a div with a height and overflow-x: hidden so I can see the vertical scroll-bar.
Now when I scroll the whole page with the mouse wheel, if my cursor goes on the top of that div it starts scrolling the div instead of the page. Is it possible to remove mouse scrolling on this particular div?


More From » jquery

 Answers
23

I don't know how important is the content in that div but another solution could be to make your pointer have no effect on div pointer-events:none. More explanations here.


[#79875] Friday, March 1, 2013, 11 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
denzelc

Total Points: 637
Total Questions: 89
Total Answers: 88

Location: Liechtenstein
Member since Wed, Dec 8, 2021
3 Years ago
denzelc questions
Wed, Jan 12, 22, 00:00, 2 Years ago
Thu, Sep 2, 21, 00:00, 3 Years ago
Thu, Sep 2, 21, 00:00, 3 Years ago
Sun, Oct 11, 20, 00:00, 4 Years ago
Fri, Jul 24, 20, 00:00, 4 Years ago
;