New issue
Advanced search Search tips

Issue 841580 link

Starred by 2 users

Issue metadata

Status: Assigned
Owner:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 3
Type: Bug



Sign in to add a comment

Dragging a window with a pen is broken or flaky (Windows)

Project Member Reported by bsep@chromium.org, May 9 2018

Issue description

Reminder bug for myself to go back and clean this up, when I have more time. On a Surfacebook, dragging the titlebar only moves the window about 10% of the time. Caption buttons are also flaky, though custom titlebar seems to have helped that problem.

I'm guessing we need to DefWindowProc pen events that hit HTCAPTION, and then also DefWindowProc the associated synthesized mouse event. Right now we always claim to handle pen input events and that's probably not correct.
 
Paper trail which is probably related (I tried marking PT_TOUCH events as always handled): IIRC drag/drop doesn't seem to work with touch events, and we always mark pen events as handled because we don't want to generate the compatibility events:

https://cs.chromium.org/chromium/src/ui/views/win/hwnd_message_handler.cc?l=2973&rcl=a7e2a40c1c3d42b8b0b9df2c543615d9553d9cb5

I tried doing this for PT_TOUCH before to prevent duplicate events for touching the caption buttons way before (touch + compatibility events) and found that drag/dropping tabs did not work after that change. A stack overflow post claims that OLE drag/drop starts failing after enabling PT_MOUSE instead of using WM_LBUTTONDOWN and friends: https://stackoverflow.com/questions/34218514/drag-drop-stops-working-after-enablemouseinpointer
Labels: Hotlist-DesktopUIToolingRequired Hotlist-DesktopUIChecked
** UI Mass triage**

Adding labels for expert review.

Sign in to add a comment