Comments (2)
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.
from fuse10.
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.
from fuse10.
Related Issues (1)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fuse10.