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

Unified Diff: remoting/webapp/client_session.js

Issue 558283002: Fix bump-scroll. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix another instance. Created 6 years, 3 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 13e7d7e9eeaa738bf8fd4146015f5c1a1ef242db..05e942ae7e20cddb9e9b0a22f23c771b3f91926c 100644
--- a/remoting/webapp/client_session.js
+++ b/remoting/webapp/client_session.js
@@ -1331,7 +1331,7 @@ remoting.ClientSession.prototype.onShowOptionsMenu_ = function() {
*/
remoting.ClientSession.prototype.scroll_ = function(dx, dy) {
var plugin = this.plugin_.element();
- var style = plugin.style;
+ var style = this.container_.style;
Sergey Ulanov 2014/09/10 22:07:42 nit: move these below where they are used.
/**
* Helper function for x- and y-scrolling
@@ -1367,8 +1367,8 @@ remoting.ClientSession.prototype.scroll_ = function(dx, dy) {
remoting.ClientSession.prototype.resetScroll_ = function() {
if (this.plugin_) {
var plugin = this.plugin_.element();
Sergey Ulanov 2014/09/10 22:07:42 This line can be removed now and also the if() abo
- plugin.style.marginTop = '0px';
- plugin.style.marginLeft = '0px';
+ this.container_.style.marginTop = '0px';
+ this.container_.style.marginLeft = '0px';
}
};
@@ -1532,8 +1532,7 @@ remoting.ClientSession.prototype.updateMouseCursorImage_ =
* @return {{top: number, left:number}} The top-left corner of the plugin.
*/
remoting.ClientSession.prototype.getPluginPositionForTesting = function() {
- var plugin = this.plugin_.element();
- var style = plugin.style;
+ var style = this.container_.style;
return {
top: parseFloat(style.marginTop),
left: parseFloat(style.marginLeft)
« 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