View previous topic :: View next topic |
Author |
Message |
pluby The Architect
Joined: Jun 16, 2003 Posts: 11949
|
Posted: Wed Mar 26, 2008 9:10 pm Post subject: Enhanced mouse wheel support |
|
Up until now, due to limitations in Apple's Java, NeoOffice users suffered from the following mouse wheel problems:
- No mouse wheel scrolling in popup menus and lists
- No horizontal mouse wheel scrolling
Well I finally found a way to bypass Java's limitations and handle native mouse wheel events correctly. So, if you use a mouse wheel and either of the above problems has annoyed you, I have a test patch that you can try.
You can test the enhanced mouse wheel support by installing the following test patch:
PowerPC:
http://jane.neooffice.org/test/NeoOffice-2.2.3-Patch-1-Test-3-PowerPC.dmg
Intel:
http://jane.neooffice.org/test/NeoOffice-2.2.3-Patch-1-Test-3-Intel.dmg
Patrick |
|
Back to top |
|
|
sardisson Town Crier
Joined: Feb 01, 2004 Posts: 4588
|
Posted: Wed Mar 26, 2008 10:47 pm Post subject: |
|
You, good sir, are the Mæstro of mæstros!
Two-fingered scrolling is one of those things that you don't realize how addicted to it you've become until you hit some place where it doesn't work, and horizontally in Neo has been one of those places (my old PowerBook being another ).
I noticed just one small bug (10.5.2/Intel):
If you position the cursor over one of the combo boxes in the Writer toolbar (e.g. the styles or zoom), scrolling over it scrolls the contents "in-place" when the combo box isn't dropped down to display the child window, whereas native combo boxes (e.g. Network Utility's Whois tab's server combo box) don't.
To be honest, this may not be a new bug, as I'd never tried that before; I did it accidentally as a result of playing with the scrolling in their dropped-down child windows
Smokey _________________ "[...] whether the duck drinks hot chocolate or coffee is irrelevant." -- ovvldc and sardisson in the NeoWiki |
|
Back to top |
|
|
miggs Agent
Joined: Sep 22, 2004 Posts: 13 Location: Canada
|
Posted: Wed Mar 26, 2008 10:52 pm Post subject: Re: Enhanced mouse wheel support |
|
I was hoping that your wizardry would enable this feature some day!
Testing the patch on my MacBook Pro using the trackpad the behavior for horizontal scrolling is reversed from the expected behavior. Moving fingers from left to right scrolls from right to left. This is counter to how it behaves in the finder, moving fingers left to right scrolls left to right.
Should I file a bug? |
|
Back to top |
|
|
OPENSTEP The One
Joined: May 25, 2003 Posts: 4752 Location: Santa Barbara, CA
|
Posted: Thu Mar 27, 2008 12:44 am Post subject: |
|
Offhand do you know if the behaviour also reversed with a mouse scrollball? If so we just need to multiply the factor by -1.
ed |
|
Back to top |
|
|
jgd Agent Smith
Joined: Feb 27, 2005 Posts: 1531 Location: France
|
Posted: Thu Mar 27, 2008 3:27 am Post subject: |
|
OPENSTEP wrote: | Offhand do you know if the behaviour also reversed with a mouse scrollball? If so we just need to multiply the factor by -1.
ed |
Yes, it's the same with the Mighty Mouse.
Jacqueline |
|
Back to top |
|
|
pluby The Architect
Joined: Jun 16, 2003 Posts: 11949
|
Posted: Thu Mar 27, 2008 7:41 am Post subject: |
|
sardisson wrote: | If you position the cursor over one of the combo boxes in the Writer toolbar (e.g. the styles or zoom), scrolling over it scrolls the contents "in-place" when the combo box isn't dropped down to display the child window, whereas native combo boxes (e.g. Network Utility's Whois tab's server combo box) don't. |
This is normal behavior for OpenOffice.org. While NeoOffice does draw native combo boxes, NeoOffice's underlying OpenOffice.org code still does all of the event handling. In this particular case, the OpenOffice.org Writer code reacts to the mouse scroll event by changing the selected item in the combo box.
Patrick |
|
Back to top |
|
|
pluby The Architect
Joined: Jun 16, 2003 Posts: 11949
|
Posted: Thu Mar 27, 2008 7:44 am Post subject: Re: Enhanced mouse wheel support |
|
miggs wrote: | Testing the patch on my MacBook Pro using the trackpad the behavior for horizontal scrolling is reversed from the expected behavior. Moving fingers from left to right scrolls from right to left. This is counter to how it behaves in the finder, moving fingers left to right scrolls left to right. |
Ed was correct, the horizontal scroll events need to be multiplied by -1 when our code converts native events to OpenOffice.org event format.
I have made this change in the following test patch. Does horizontal scrolling now work correctly?:
PowerPC:
http://jane.neooffice.org/test/NeoOffice-2.2.3-Patch-1-Test-4-PowerPC.dmg
Intel:
http://jane.neooffice.org/test/NeoOffice-2.2.3-Patch-1-Test-4-Intel.dmg
Patrick |
|
Back to top |
|
|
sardisson Town Crier
Joined: Feb 01, 2004 Posts: 4588
|
Posted: Thu Mar 27, 2008 7:50 am Post subject: Re: Enhanced mouse wheel support |
|
miggs wrote: | horizontal scrolling is reversed from the expected behavior. |
Apparently I was so blown away by the feature I failed to notice that bug
Smokey _________________ "[...] whether the duck drinks hot chocolate or coffee is irrelevant." -- ovvldc and sardisson in the NeoWiki |
|
Back to top |
|
|
sardisson Town Crier
Joined: Feb 01, 2004 Posts: 4588
|
Posted: Thu Mar 27, 2008 8:17 am Post subject: Re: Enhanced mouse wheel support |
|
pluby wrote: | I have made this change in the following test patch. Does horizontal scrolling now work correctly? |
Yes (10.5.2/Intel/Trackpad)
Smokey _________________ "[...] whether the duck drinks hot chocolate or coffee is irrelevant." -- ovvldc and sardisson in the NeoWiki |
|
Back to top |
|
|
yoxi Cipher
Joined: Sep 07, 2004 Posts: 1799 Location: Dawlish, Devon
|
Posted: Thu Mar 27, 2008 8:24 am Post subject: |
|
Curious behaviour, horizontal scrolling in calc with the trackpad on my MBP: say the cursor is in cell A20, then I scroll right a few times until I'm in double-letter territory - and the doc window is still showing rows 1-38.
Then I scroll left again to get back to column A; everything's fine until the last left scroll, at which point the screen jumps down around 10-20 rows so the top rows no longer show in the doc window and I have to scroll up.
Is this because I'm left-handed?
- padmavyuha |
|
Back to top |
|
|
pluby The Architect
Joined: Jun 16, 2003 Posts: 11949
|
Posted: Thu Mar 27, 2008 8:46 am Post subject: |
|
yoxi wrote: | Is this because I'm left-handed? |
Absolutely.
Just kidding. I can reproduce this behavior and since I cannot do horizontal scrolling in the OOo X11 or Aqua builds, I put some debug statements in my code and I am seeing a vertical Java mouse wheel every so often even though all of the native events are horizontal. So it is obviously a bug in my code somewhere.
I'll post another test patch when I have a fix for this bug.
Patrick |
|
Back to top |
|
|
yoxi Cipher
Joined: Sep 07, 2004 Posts: 1799 Location: Dawlish, Devon
|
Posted: Thu Mar 27, 2008 8:50 am Post subject: |
|
The natives are restless... |
|
Back to top |
|
|
jgd Agent Smith
Joined: Feb 27, 2005 Posts: 1531 Location: France
|
Posted: Thu Mar 27, 2008 8:55 am Post subject: Re: Enhanced mouse wheel support |
|
sardisson wrote: | pluby wrote: | I have made this change in the following test patch. Does horizontal scrolling now work correctly? |
Yes (10.5.2/Intel/Trackpad)
Smokey |
+1 Intel 10.5.2 Mighty Mouse
Very nice new feature, Thanks a lot!
Jacqueline |
|
Back to top |
|
|
jgd Agent Smith
Joined: Feb 27, 2005 Posts: 1531 Location: France
|
Posted: Thu Mar 27, 2008 10:17 am Post subject: |
|
On my quite old PowerBook I've installed (ages ago ) SideTrack, a little program which allows scrolling and rigth-clicking with the trackpad. It works fine with Test 4.
Jacqueline |
|
Back to top |
|
|
glawrie Keymaker
Joined: Mar 17, 2008 Posts: 78 Location: Maidenhead, UK
|
Posted: Thu Mar 27, 2008 2:37 pm Post subject: |
|
+1 Works (scrolling in menus) on Logitech Cordless Optical Trackman running on 10.5.2 on PPC (Apple OS X not Logitech drivers). |
|
Back to top |
|
|
|