Login  Register

Re: Mac trackpad horizontal scrolling with NEWT

Posted by Sven Gothel on Dec 31, 2012; 7:50am
URL: https://forum.jogamp.org/Mac-trackpad-horizontal-scrolling-with-NEWT-tp4027658p4027663.html

On 12/31/2012 08:49 AM, Sven Gothel wrote:

> On 12/30/2012 08:12 PM, pron [via jogamp] wrote:
>> Hi.
>>
>> Mac notebooks support two-finger scrolling with the trackpad. This generates
>> mouse-wheel events. With AWT, MouseWheelEvent.isShiftDown() returns false for
>> vertical scrolling and true for horizontal scrolling. However, with NEWT,
>> MouseEvent.isShiftDown() returns false in both cases (though it returns true
>> when the shift key is actually down).
>>
>> This means that there is no way to detect horizontal scrolling. I've been able
>> to find a twisted workaround by creating a translucent AWT frame on top of the
>> NEWT window and capturing the events there, but it would be great if NEWT
>> could also return true from MouseEvent.isShiftDown() in the case of horizontal
>> scrolling.
>>
>
> Please file a bug report and make it depend on:
>   <https://jogamp.org/bugzilla/show_bug.cgi?id=629>
and on:
    <https://jogamp.org/bugzilla/show_bug.cgi?id=656>

Thank you!

>
> Is this happing w/ a 'pure' NEWT OSX window ?
>
> Then pls name the bug:
>   'NEWT key modifier bits (SHIFT, ..) not set w/ trackpad 2 finger horizontal scrolling'
> .. and add your description above.
>
> ~Sven
>
>



signature.asc (909 bytes) Download Attachment