Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(95)

Unified Diff: remoting/webapp/client_session.js

Issue 10537113: Fix bump-scroll on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Simpler solution. Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/client_session.js
diff --git a/remoting/webapp/client_session.js b/remoting/webapp/client_session.js
index 98a5652b05d0e078d5ccb5e20e2c7c4f2de69eb2..fbd38d30fe7914454e9b8eb1ad926f558a789771 100644
--- a/remoting/webapp/client_session.js
+++ b/remoting/webapp/client_session.js
@@ -639,7 +639,10 @@ remoting.ClientSession.prototype.toggleFullScreen_ = function() {
this.enableBumpScroll_(false);
} else {
document.body.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT);
- this.enableBumpScroll_(true);
+ // Don't enable bump scrolling immediately because it can result in
+ // onMouseMove firing before the webkitIsFullScreen property can be
+ // read safely (crbug.com/132180).
+ window.setTimeout(this.enableBumpScroll_.bind(this, true), 0);
}
};
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698