You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
When Servo isn't the window directly in front, scroll is stuck in previously scrolled layer #14290
On Mac, I've noticed that, when Servo isn't the window 'in front', then even though you can still scroll Servo because it's still viewable, it is always the same 'layer' (in the sense of the Webrender layer) that scrolls, even if you move the cursor onto a different part of the page.
So for example taking https://output.jsbin.com/lukiye, if you start by scrolling the main page, then move Servo to the back (for example take the terminal in front of it), while still showing Servo. You can still scroll the main page, however when you move your cursor onto the div in the middle of it, trying to scroll it will just scroll the page, not the child div. Same thing if you start by first scrolling the child div.
In other words, the scrolling is 'stuck' in the layer that you happened to be scrolling the last time that Servo was still 'in front'.
I've checked, and when Servo is no longer 'in front', the scroll in webrender always receives the same 'cursor', even when you actually move your cursor around...
I've also noticed that when Servo isn't in front on start-up, you cannot scroll at all.
This is presumably because when the window isn't active, it doesn't receive mouse movement events, so any scroll events received would use the old mouse position to choose which layer. I wonder why it receives scroll events, though?
@paulrouget there are a couple of PR's for this, see above. Since you reviewed the MouseInput changes at the time, perhaps you want to review this also?
Activity
jdm commentedon Nov 20, 2016
This is presumably because when the window isn't active, it doesn't receive mouse movement events, so any scroll events received would use the old mouse position to choose which layer. I wonder why it receives scroll events, though?
paulrouget commentedon Nov 21, 2016
This is an issue we encountered before with unfocused windows.
We should do what we did for
MouseInputservo/glutin#97 but forMouseWheel.gterzian commentedon Nov 21, 2016
@paulrouget thanks! I'll look into it in the coming weeks...
gterzian commentedon Dec 31, 2016
@paulrouget there are a couple of PR's for this, see above. Since you reviewed the
MouseInputchanges at the time, perhaps you want to review this also?Auto merge of #109 - gterzian:return_mouse_coords_in_wheel_events, r=…
Auto merge of #15333 - mbrubeck:update_mouse_position_when_receiving_…