Skip to content

Commit

Permalink
[FIX] web_responsive: Chrome Slow Scrolling
Browse files Browse the repository at this point in the history
* Patch chrome slow scrolling issue temporarily and add note to readme to remove patch when iScroll is updated
  • Loading branch information
lasley committed Oct 7, 2017
1 parent 1edb170 commit 52282f7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions web_responsive/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ this module.
* Adding ``oe_main_menu_navbar`` ID to the top navigation bar triggers some
great styles, but also `JavaScript that causes issues on mobile
<https://github.com/OCA/web/pull/446#issuecomment-254827880>`_
* Remove Chrome slow scrolling patch when iScroll is updated


Bug Tracker
Expand Down
8 changes: 8 additions & 0 deletions web_responsive/static/src/js/web_responsive.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,15 @@ odoo.define('web_responsive', function(require) {
'transform', 'matrix(1, 0, 0, 1, 0, ' + transform + ')'
);
};
// Scroll probe aggressiveness level
// 2 == always executes the scroll event except during momentum and bounce.
this.iScroll.options.probeType = 2;
// Chrome slow scroll issue - https://github.com/cubiq/iscroll/issues/1100
// This should be fixed in the next iScroll version
this.iscroll.options.disablePointer = true;
this.iscroll.options.disableTouch = false;
this.iscroll.options.disableMouse = true;
// Set options because
this.iScroll.on('scroll', $.proxy(onIScroll, this));
});
this.initialized = true;
Expand Down

0 comments on commit 52282f7

Please sign in to comment.