I have <div>on my page with a fixed height, and overflow-y: scroll;set so that the content will scroll when it passes the bottom edge <div>. Nothing unusual.
For some strange reason, the mouse wheel will scroll the contents only if the cursor is above the empty space in <div>, or if it is located above the scrollbar itself. If the cursor is over any text content in <div>, the mouse wheel will do nothing.
This happens both in Firefox and in Chrome, so it’s not just a quirk of a particular rendering engine or something like that.
The one in <div>question is superimposed on top of the other through position: absolute;, so I assume that some <div>behind it interferes with the mouse wheel event - but then you think that the problem will be (it <div>will scroll when the cursor was over text and not over empty space).
Has anyone else seen anything like this before? I'm at a dead end!
daGUY source
share