Skip to content

Commit

Permalink
Fixes a mousewheel scrolling issue on Chrome. Fixes #1273
Browse files Browse the repository at this point in the history
  • Loading branch information
jseanxu committed Jul 31, 2015
1 parent 2bc9a40 commit ca91896
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/js/WinJS/Controls/Hub.js
Original file line number Diff line number Diff line change
Expand Up @@ -788,6 +788,13 @@ define([
this._viewportElement.style["-ms-overflow-style"] = "none";
onScreenItemsAnimatedPromise = Animations.enterContent(this._viewportElement).then(function () {
this._viewportElement.style["-ms-overflow-style"] = "";

this._viewportElement.onmousewheel = function () {
/*
This fixes a mousewheel scrolling issue on Chrome. This empty event handler can be removed
once https://code.google.com/p/chromium/issues/detail?id=515674 is resolved and fixed.
*/
};
}.bind(this));
}
}
Expand Down

0 comments on commit ca91896

Please sign in to comment.