Google Groups

Issue 168544 in chromium: DragEnd event fired when DOM is changed during drag Jan 7, 2013 3:10 AM
Posted in group: Chromium-bugs
Status: Unconfirmed
Owner: ----
Labels: Area-UI Pri-2 Via-Wizard Type-Bug OS-Linux

New issue 168544 by DragEnd event fired when DOM is  
changed during drag

UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.17 (KHTML, like  
Gecko) Chrome/24.0.1312.45 Safari/537.17

Steps to reproduce the problem:
1. Go to
2. Execute this javascript:

var title = document.getElementById("firstHeading");
var toc = document.getElementById("toc");
toc.draggable = "draggable";
toc.ondragstart = function () { console.log("ondragstart"); = Math.round(100*Math.random()) + "px"; }
toc.ondragend = function() { console.log("ondragend"); }

3. Drag the table of contents

What is the expected behavior?
The table of contents is draggable, and the page text moves randomly up or  
down when starting to drag.

What went wrong?
Whenever the page text moves down, the dragend event is fired immediately.

Did this work before? N/A

Chrome version: 24.0.1312.45  Channel: beta
OS Version:

This is a simplified example. My real use case is making a radial menu,  
where I need the menu items to appear on drag start.