box handler cancels click
|Reported by:||pgiraud||Owned by:||pgiraud|
Since the revision 10871, the box handler prevents the click events from being triggered.
As said almost everywhere "The click event occurs when the pointing device button is clicked over an element. A click is defined as a mousedown and mouseup over the same screen location.". This means that "mousedown" and "mouseup" have to occur on the same element.
In our case, when "mousedown" is triggered, the box handler creates a new div element which is appended under the mouse cursor. When "mouseup" is triggered, the event target is not the same. The "click" event is not triggered.
Before the changeset, the box was positioned with a tiny offset. Now that positioning is better, the box div is exactly under the mouse.
A straight way to solve the issue is to position the box under the cursor only once the latter is actually moved.
Attached is a patch, and an example to manually test the issue.
Change History (9)
comment:3 Changed 4 years ago by pgiraud
- Priority changed from major to blocker
- Resolution fixed deleted
- State Commit deleted
- Status changed from closed to reopened