Index: chrome/browser/resources/new_new_tab.js |
=================================================================== |
--- chrome/browser/resources/new_new_tab.js (revision 20671) |
+++ chrome/browser/resources/new_new_tab.js (working copy) |
@@ -1117,8 +1117,13 @@ |
if (this.canDropOnElement(dropTarget)) { |
dropTarget.style.zIndex = 1; |
mostVisited.swapPosition(this.dragItem, dropTarget); |
- mostVisited.invalidate(); |
- mostVisited.layout(); |
+ // The timeout below is to allow WebKit to see that we turned off |
+ // pointer-event before moving the thumbnails so that we can get out of |
+ // hover mode. |
+ window.setTimeout(function() { |
+ mostVisited.invalidate(); |
+ mostVisited.layout(); |
+ }, 10); |
e.preventDefault(); |
if (this.dragEndTimer) { |
window.clearTimeout(this.dragEndTimer); |