Skip to content

AutoScroll element interferes with elements below it #14

@alexbarrett

Description

@alexbarrett

I encountered this issue while reading this web page: http://activelamp.com/blog/devops/drupal-8-development-in-docker-redux/

Description
Some of the code samples on the linked page are wider than my viewport. The site uses JavaScript to dynamically expand the width of these code samples when hovered over.

However, if you hover over one of the then middle click to auto-scroll, the cursor is no longer hovering over the element and the page shrinks the code sample back down again.

I've not tested this with CSS hover events but I expect it would exhibit the same behaviour.

Steps to reproduce

  1. Open the linked page and resize your viewport so the width is less than at least one of the code samples.
  2. Hover over a code sample wider than your viewport, causing its width to expand.
  3. Middle-click to start auto-scrolling to the right.

Expected result
The code sample remains expanded while you auto-scroll allowing you to read its contents.

Actual result
The code sample shrinks, as the cursor is now hovering over the AutoScroll element instead of the code sample.

Possible fix
Add the pointer-events: none CSS property to the AutoScroll element. Doing this manually in Web Inspector fixes the issue for me (temporarily).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions