WebUI Tab Strip: Show context menu also on drop
Previously, with CL 2446353, the context menu was moved to be shown on dragend and not drop. However, if the user moves their finger by a few pixels but not enough for a index change, a drop event can occur before a dragend event which finishes out the DragSession and therefore never calls the dragend code that shows the context menu [1]. This CL duplicates the context menu call to also happen on drop for these cases. [1] https://source.chromium.org/chromium/chromium/src/+/master:chrome/browser/resources/tab_strip/drag_manager.js;l=574;drc=31eb3f4376c66b42eb4fc269025be4a8ee13e357;bpv=1 Bug: 1142608 Change-Id: Ic6daf3dfc38c945e45cf366baea7901ca645ff68 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2500482 Commit-Queue: John Lee <johntlee@chromium.org> Reviewed-by:dpapad <dpapad@chromium.org> Cr-Commit-Position: refs/heads/master@{#821387}
Showing
Please register or sign in to comment