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

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

Issue 155542: NNTP: Lots of small tweaks... (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 | « chrome/browser/resources/new_new_tab.html ('k') | 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 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);
« no previous file with comments | « chrome/browser/resources/new_new_tab.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698