http://bugs.winehq.org/show_bug.cgi?id=22274
Summary: Edit control continues scrolling after mouse leaves window Product: Wine Version: 1.1.42 Platform: x86-64 OS/Version: Linux Status: UNCONFIRMED Severity: enhancement Priority: P2 Component: user32 AssignedTo: wine-bugs@winehq.org ReportedBy: nospam@thenerdshow.com
Created an attachment (id=27210) --> (http://bugs.winehq.org/attachment.cgi?id=27210) user32: edit control scrolling now properly follows mouse selection
I will attach the source code for a small test program that reproduces this behavior.
Steps to reproduce: $ wine et.exe (edit test program)
Alternate steps to reproduce: $ wine notepad 1. Paste the text of this bug report into the window. 2. shrink window down to about the size of a business card 3. Edit Menu - > turn off Wrap long lines
* A horizontal scrollbar should appear.
4. left-click in the window 5. continue holding down the left mouse button 6. drag mouse to the right until it leaves the window 7. continue holding the left button down 8. wait...
* Notice that the text selection keeps growing. This doesn't happen on windows.
9. still holding the mouse, move it around outside the window
10. Try to select a paragraph of text without using the scrollbars.
* Notice that it is hard to select the exact amount of text you want because the selection keeps growing spookily on its own. Again, this doesn't happen on windows.
Well, I found out what's causing the spooky growing text selection. It's a fixme of WM_TIMER in edit.c
The attached patch fixes it.