It is currently Mon Jun 24, 2019 7:10 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: 5.61 - Two fingers tap on trackpad triggers scroll events
PostPosted: Thu Dec 21, 2017 11:00 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Tue Jan 31, 2006 9:43 am
Posts: 485
Location: France
A "Two Fingers Tap" (to do a right-click) on the trackpad of a Macbook (even wihtout moving) triggers scroll wheel events in a CanvasGadget (and may be OpenGLGadget ?) :

Code:
OpenWindow (0, 100, 100, 300, 200, "CanvasGadget Events Test")
CanvasGadget(0, 10, 10, 280, 180, #PB_Canvas_Keyboard)

Repeat
   Select WaitWindowEvent()
      Case #PB_Event_Gadget
         Select EventGadget()
            Case 0 ; CanvasGadget
               Select EventType()
                  Case #PB_EventType_LeftButtonDown
                     Debug "#PB_EventType_LeftButtonDown"
                  Case #PB_EventType_LeftButtonUp
                     Debug "#PB_EventType_LeftButtonUp"
                  Case #PB_EventType_LeftClick
                     Debug "#PB_EventType_LeftClick"
                  Case #PB_EventType_RightButtonDown
                     Debug "#PB_EventType_RightButtonDown"
                  Case #PB_EventType_RightButtonUp
                     Debug "#PB_EventType_RightButtonUp"
                  Case #PB_EventType_RightClick
                     Debug "#PB_EventType_RightClick"
                  Case #PB_EventType_MouseWheel
                     Debug "#PB_EventType_MouseWheel"
               EndSelect
         EndSelect
     
      Case #PB_Event_CloseWindow
         Break
   EndSelect
ForEver

_________________
Niffo


Last edited by Niffo on Thu Dec 21, 2017 1:38 pm, edited 1 time in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: 5.61 - Double Tap on trackpad triggers scroll wheel even
PostPosted: Thu Dec 21, 2017 1:20 pm 
Offline
Enthusiast
Enthusiast

Joined: Thu May 30, 2013 4:39 pm
Posts: 417
Works here fine on PB 5.46 OSX 10.7.


Top
 Profile  
Reply with quote  
 Post subject: Re: 5.61 - Two fingers tap on trackpad triggers scroll event
PostPosted: Thu Dec 21, 2017 1:40 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Tue Jan 31, 2006 9:43 am
Posts: 485
Location: France
@Wolfram : My mistake, it's not a "Double tap" but a "Two fingers tap" (to do a right-click). I've corrected my first post.

_________________
Niffo


Top
 Profile  
Reply with quote  
 Post subject: Re: 5.61 - Two fingers tap on trackpad triggers scroll event
PostPosted: Fri Apr 26, 2019 3:50 pm 
Offline
Administrator
Administrator

Joined: Fri May 17, 2002 4:39 pm
Posts: 13594
Location: France
I can reproduce it, but I think it's the expected way because if I really don't move (quick 2 finger tap) no mouse wheel event is triggered. So the OS trigger a wheel event even if it's a very small move.


Top
 Profile  
Reply with quote  
 Post subject: Re: 5.61 - Two fingers tap on trackpad triggers scroll event
PostPosted: Tue May 07, 2019 10:19 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Tue Jan 31, 2006 9:43 am
Posts: 485
Location: France
From our MacBook, a "mouse wheel" event is triggered about 9 times out of 10, even without moving at all :(

_________________
Niffo


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye