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.
http://bugs.winehq.org/show_bug.cgi?id=22274
--- Comment #1 from Henry Kroll nospam@thenerdshow.com 2010-04-04 20:08:01 --- Created an attachment (id=27211) --> (http://bugs.winehq.org/attachment.cgi?id=27211) user32: Edit control Test Case
compiles with mingw compiler or winegcc. no special options
http://bugs.winehq.org/show_bug.cgi?id=22274
Henry Kroll nospam@thenerdshow.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, patch, source, | |testcase CC| |nospam@thenerdshow.com Difficulty|--- |Minutes
http://bugs.winehq.org/show_bug.cgi?id=22274
--- Comment #2 from Henry Kroll nospam@thenerdshow.com 2010-04-04 20:18:00 --- I meant no special options with mingw, but I guess winegcc still needs -m32
winegcc et.c -o et -m32
http://bugs.winehq.org/show_bug.cgi?id=22274
Vitaliy Margolen vitaliy@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Difficulty|Minutes |---
--- Comment #3 from Vitaliy Margolen vitaliy@kievinfo.com 2010-04-04 21:08:32 --- Please send all patches to wine-patches mailing list. They are not being picked up from bugzilla.
http://bugs.winehq.org/show_bug.cgi?id=22274
--- Comment #4 from Henry Kroll nospam@thenerdshow.com 2010-04-05 00:49:59 --- I kind of figured that, so I sent a patch to the list, thanks.
Also, for those who wish to run the test, do it from a terminal or command window so you can see output. Do not compile with -mwindows switch (because text will not echo to the terminal if you do that.) There are no easter eggs, but Happy Easter anyways!
http://bugs.winehq.org/show_bug.cgi?id=22274
--- Comment #5 from Henry Kroll nospam@thenerdshow.com 2010-04-05 14:41:47 --- sorry, -mno-cygwin was needed. -m32 was just for linking on my 64 bit system winegcc -m32 et.c -o et -mno-cygwin
http://bugs.winehq.org/show_bug.cgi?id=22274
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |00cpxxx@gmail.com
http://bugs.winehq.org/show_bug.cgi?id=22274
André H. nerv@dawncrow.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW CC| |nerv@dawncrow.de Ever Confirmed|0 |1
--- Comment #6 from André H. nerv@dawncrow.de 2012-09-27 12:49:03 CDT --- confirming download, patch, source, testcase and still present after two years... Please try to send the patch again, thx.
http://bugs.winehq.org/show_bug.cgi?id=22274
--- Comment #7 from Bruno Jesus 00cpxxx@gmail.com 2013-02-08 17:21:22 CST --- Still in wine 1.5.23.
https://bugs.winehq.org/show_bug.cgi?id=22274
Ken Sharp imwellcushtymelike@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Severity|enhancement |trivial
--- Comment #8 from Ken Sharp imwellcushtymelike@gmail.com --- Please retest in Wine 1.7.47 or later.