https://bugs.documentfoundation.org/show_bug.cgi?id=152406

--- Comment #37 from Patrick Luby <plub...@neooffice.org> ---
(In reply to Patrick Luby from comment #36)
> Also, if I multiple the X and Y by 10K, I
> can reproduce the bug using Shift-scrollwheel instead of swiping. In other
> words, it seems you have to jump way out right (maybe past 8K columns?) very
> rapidly to trigger this bug.

Here's a diff that you can use to reproduce the bug by spinning the scroll
wheel while pressing the Shift key. Open an empty spreadsheet,
Shift-scrollwheel 5 to 10 times, then release the Shift key and scrollwheel:

diff --git a/vcl/osx/salframeview.mm b/vcl/osx/salframeview.mm
index ae9528306cfa..c22812b6c894 100644
--- a/vcl/osx/salframeview.mm
+++ b/vcl/osx/salframeview.mm
@@ -1048,6 +1048,10 @@ -(void)scrollWheel: (NSEvent*)pEvent
             pEvent = pNextEvent;
         }

+        dX *= 100000;
+        dY *= 100000;
+
+
         NSPoint aPt = [NSEvent mouseLocation];
         mpFrame->CocoaToVCL( aPt );

Note: I found two other cases where you can escape from this bug so here is the
complete list:
- Horizontal scrollwheel
- Click anywhere in vertical scrollbar
- Click in native menubar

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to