fuse10 icon indicating copy to clipboard operation
fuse10 copied to clipboard

Scrollbar can't be used due to header rotation

Open ticky opened this issue 12 years ago • 2 comments
trafficstars

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.

ticky avatar Aug 25 '13 07:08 ticky

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.

unconed avatar Aug 27 '13 22:08 unconed

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.

ticky avatar Aug 27 '13 23:08 ticky