Example URL: http://www.ivank.net/veci/click_test.html Steps to reproduce the problem: 1. Open the URL 2. Press mouse on the left half of canvas 3. Drag to the right half and release the mouse. 4. Keep pressing, dragging and releasing mouse on the right half on canvas. What is the expected behavior? Canvas should support mouse events. If you look into console, it should always print (down, dragging*, up)* // pseudo regular expression What went wrong? Instead, after dragging over the middle of canvas, it gets selected and "mouseup" event does not work, it prints only (down, dragging*)*
<rdar://problem/14225079>
Created attachment 205143 [details] Fixes the bug
Comment on attachment 205143 [details] Fixes the bug I don't know what Chromium/Blink is doing to make mouse up not fire. That problem doesn't exist in WebKit. However, we should still not select the canvas element.
Comment on attachment 205143 [details] Fixes the bug View in context: https://bugs.webkit.org/attachment.cgi?id=205143&action=review > LayoutTests/fast/events/mosuedrag-on-canvas-should-not-start-selection.html:11 > +description("This tests initiating a mouse drag on a canvas element doesn't start selection." > + + "To manually test, drag mouse on the canvas below. WebKit shouldn't select the canvas.") Missing space between the sentences (or remove the +)
Committed r151822: <http://trac.webkit.org/changeset/151822>