Found an issue in SpiderBasic ? Please report it here !
User avatar
Niffo
 
Posts: 21
Joined: Sat Jun 16, 2018 10:30 pm

Canvas "mouse" events do not work correctly on mobile device

by Niffo Mon Jun 25, 2018 8:58 am

CanvasGadget "mouse" events does not work correctly on mobile device ONLY IF the window is "background" or "borderless" :

[Edit]
Snippet updated.
All events are triggered at "Mouse Up" (Finger Up)
If the window is not "background" or "borderless", it works.
[/Edit]

Code: Select all
Procedure Frm_Main_DlgProc()
   Select EventGadget()
      Case 0
         Select EventType()
            Case #PB_EventType_MouseEnter
Debug "#PB_EventType_MouseEnter"
            Case #PB_EventType_MouseLeave
Debug "#PB_EventType_MouseLeave"
            Case #PB_EventType_MouseMove
Debug "#PB_EventType_MouseMove"
            Case #PB_EventType_LeftClick
Debug "#PB_EventType_LeftClick"
            Case #PB_EventType_LeftButtonUp
Debug "#PB_EventType_LeftButtonUp"
            Case #PB_EventType_LeftButtonDown
Debug "#PB_EventType_LeftButtonDown"
         EndSelect
   EndSelect
EndProcedure

;OpenWindow(0, 0, 0, 300, 200, "Canvas FullScreen Test")
OpenWindow(0, 0, 0, 300, 200, "Canvas FullScreen Test", #PB_Window_Background) ; Full browser : Canvas gadget events does not work corectly in #PB_Window_Background or #PB_Window_Borderless !
CanvasGadget(0, 10, 10, 280, 180)
BindEvent(#PB_Event_Gadget, @Frm_Main_DlgProc(), 0)
Return to Bugs Reports

Who is online

Users browsing this forum: No registered users and 0 guests