Commit 9f111b57 authored by dbeam@chromium.org's avatar dbeam@chromium.org

Only hide menus when scrolls come from sources other than inside the menu itself.

R=estade@chromium.org
BUG=227498


Review URL: https://chromiumcodereview.appspot.com/13699005

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192929 0039d316-1c4b-4281-b951-d872f2087c98
parent 477ef105
......@@ -103,7 +103,6 @@ cr.define('cr.ui', function() {
// Hide the focus ring on mouse click.
this.classList.add('using-mouse');
break;
case 'keydown':
this.handleKeyDown(e);
......@@ -133,6 +132,9 @@ cr.define('cr.ui', function() {
this.hideMenu(hideDelayed ? HideType.DELAYED : HideType.INSTANT);
break;
case 'scroll':
if (!(e.target == this.menu || this.menu.contains(e.target)))
this.hideMenu();
break;
case 'resize':
this.hideMenu();
break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment