New issue
Advanced search Search tips

Issue 717542 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: May 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 2
Type: Task



Sign in to add a comment

Scroll parent when hovering fixed position child

Reported by akmjenk...@gmail.com, May 2 2017

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.81 Safari/537.36

Steps to reproduce the problem:
1. Create an element that has scrolling overflow
2. Create a fixed position element that is a child of the scrolling parent
3. Hover over the fixed position child and try to use mousewheel (or click fixed position and try to use keyboard)

What is the expected behavior?
Expected behaviour is fine, any appetite for the desired behaviour, when hovering over a fixed position element that is a child of a scrollable element to still allow the parent to scroll on mousewheel?

What went wrong?
Again, nothing went wrong, just asking if there's any appetite to change the current behaviour.

It's understandable that you can't scroll when hovering over a fixed position element that is positioned over top of a scrollable element AND the fixed position element IS NOT A CHILD of the scrollable element. But if the fixed positioned element is a child of the scrollable element, and is not scrollable itself, can a mousewheel event cause the parent to scroll?

Did this work before? No 

Chrome version: 58.0.3029.81  Channel: stable
OS Version: OS X 10.12.4
Flash Version: Shockwave Flash 25.0 r0

Example: https://jsfiddle.net/5a6jw4fa/

Hover over the black box and scroll, and then hover over the red square and try and scroll (mousewheel)
 
Components: -UI Blink>CSS Blink>Scroll
Labels: -Type-Bug OS-Linux OS-Windows Type-Task
Status: WontFix (was: Unconfirmed)
You should be able to achieve this by adding the following line of CSS to .scrollbar

pointer-events: none;

See https://jsfiddle.net/5a6jw4fa/2/. Also this stack overflow question :) http://stackoverflow.com/questions/1009753/pass-mouse-events-through-absolutely-positioned-element

Hope that helped, closing this since it's not a bug.

Sign in to add a comment