learning-unlimited/ESP-Website — Issue #218: AJAX Scheduling: Dragging highlights in Webkit browsers
Author: pteromys
Created: 2011-12-25 22:31:40+00:00
State: open
Labels: NeedsReproducer, UserInterface

### Observed behavior

In Chromium 15.0.874.121 and Midori 0.4.2 (x86_64 Linux), initiating the drag of a drag-and-drop causes half the page to be highlighted. A side effect is that dragging a class toward the "unschedule" box induces scrolling in the grid.

### Expected behavior

Expected behavior should be not to highlight half the page--and, I believe (unsubstantiatedly), not to scroll in the grid because I suspect most people dragging classes toward the bottom have the "unschedule" box in mind as the target.

### Suggested fix

I believe returning false [1] from some appropriate onmousedown [2] would suffice to fix this, but I'd prefer to see this reproduced independently first so that I know it's not just me.

### Footnotes

1. Looks like for jQuery events, we should use [event.preventDefault](http://api.jquery.com/event.preventDefault/) instead of returning false. [3]
2. This bug possibly also affects some version of IE--in which case binding to some element's onselectstart and returning false might fix it for IE--but not having convenient access to IE, I have no way to tell. There's [a jQuery ticket](http://bugs.jqueryui.com/ticket/5678) with more information. [3]
3. I saw this behavior in an unrelated project, so I know that it arises independently of jQuery and can be fixed in that context by returning false.