Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scrollbar can't be used due to header rotation #2

Open
ticky opened this issue Aug 25, 2013 · 2 comments
Open

Scrollbar can't be used due to header rotation #2

ticky opened this issue Aug 25, 2013 · 2 comments

Comments

@ticky
Copy link
Contributor

ticky commented Aug 25, 2013

On Windows, it is not possible to drag the scrollbar at the top of the page, as the mouse rotation of the header kicks in and overrides its use.

@unconed
Copy link
Owner

unconed commented Aug 27, 2013

This happens on OS X too, and appears to be a WebKit bug:
https://bugs.webkit.org/show_bug.cgi?id=19033

Confirmed in Safari 6, Chrome 29-31.

@ticky
Copy link
Contributor Author

ticky commented Aug 27, 2013

Just confirmed on OS X, Safari 6.1 also exhibits this behaviour.

A potential workaround could be to ignore clicks in that area when we expect a scrollbar to exist.

var scrollbarWidth = 20;
document.addEventListener('mousedown', function (e) {
  if (document.body.offsetHeight > window.innerHeight && e.pageX > window.innerWidth - scrollbarWidth) {
    return;
  }
  e.preventDefault();
});

This isn't a great solution - it doesn't really take into account OS X's on-scroll scrollbar visibility, nor would it work too well if the user heads to the corner to click the settings button in that area, but it probably solves more problems than it causes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants