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

Unified Diff: chrome/browser/resources/new_new_tab.js

Issue 149427: Fix DnD jank... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 5 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: chrome/browser/resources/new_new_tab.js
===================================================================
--- chrome/browser/resources/new_new_tab.js (revision 20158)
+++ chrome/browser/resources/new_new_tab.js (working copy)
@@ -1055,6 +1055,12 @@
// Tooltip for elements that have text that overflows.
document.addEventListener('mouseover', function(e) {
+ // We don't want to do this while we are dragging because it makes things very
+ // janky
+ if (dnd.dragItem) {
+ return;
+ }
+
var el = findAncestor(e.target, function(el) {
return el.xtitle;
});
« 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