Found an issue in SpiderBasic ? Please report it here !
User avatar
Niffo
 
Posts: 1
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" :

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

;OpenWindow(0, 100, 100, 800, 600, "Canvas FullScreen Test")
OpenWindow(0, 100, 100, 800, 600, "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, 50, 50, 300, 200)
ListViewGadget(1, 450, 50, 300, 500)
BindEvent(#PB_Event_Gadget, @Frm_Main_DlgProc(), 0)
Return to Bugs Reports

Who is online

Users browsing this forum: No registered users and 1 guest