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

Unified Diff: chrome/browser/resources/ntp4/page_switcher.js

Issue 10092017: Mac: Prevent NTP mousewheel events from being suppressed on Lion. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Whoops - send message to class, not metaclass. Created 8 years, 8 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 | « chrome/browser/resources/ntp4/page_list_view.js ('k') | chrome/browser/resources/ntp4/tile_page.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/ntp4/page_switcher.js
diff --git a/chrome/browser/resources/ntp4/page_switcher.js b/chrome/browser/resources/ntp4/page_switcher.js
index 00f51f9c49c8bcaccf8b0bc30b49a5079bdf1d17..2ae7f758aa1bc445ebcdd05e486b3bf0456ca94f 100644
--- a/chrome/browser/resources/ntp4/page_switcher.js
+++ b/chrome/browser/resources/ntp4/page_switcher.js
@@ -19,7 +19,6 @@ cr.define('ntp', function() {
el.__proto__ = PageSwitcher.template;
el.addEventListener('click', el.activate_);
- el.addEventListener('mousewheel', el.onMouseWheel_);
el.direction_ = el.id == 'page-switcher-start' ? -1 : 1;
@@ -37,18 +36,6 @@ cr.define('ntp', function() {
cardSlider.selectCard(Math.max(0, Math.min(index, numCards)), true);
},
- /**
- * Handler for the mousewheel event on a pager. We pass through the scroll
- * to the page. This is necssary because the page is our sibling in the DOM
- * hierarchy, so the event won't naturally pass through to it.
- * @param {Event} e The mousewheel event.
- * @private
- */
- onMouseWheel_: function(e) {
- var page = ntp.getCardSlider().currentCardValue;
- page.handleMouseWheel(e);
Patrick Dubroy 2012/04/17 17:28:23 This code was actually not necessary at all, becau
- },
-
shouldAcceptDrag: function(e) {
// We allow all drags to trigger the page switching effect.
return true;
« no previous file with comments | « chrome/browser/resources/ntp4/page_list_view.js ('k') | chrome/browser/resources/ntp4/tile_page.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698