Found an issue in SpiderBasic ? Please report it here !
User avatar
Paul
 
Posts: 47
Joined: Wed Feb 26, 2014 6:46 pm
Location: Canada

CloseWindow doesn't work on Mobile Device

by Paul Sun Apr 29, 2018 5:55 pm

If you use
BindEvent(#PB_Event_CloseWindow...
on a mobile device, it does not detect a press on the closewindow icon.

In a browser using a mouse button it works as expected.


Code: Select all
#Window_Main=1

Procedure CloseWindowEvent()
  If EventWindow()=#Window_Main
    Debug "Close Window Detected"
  EndIf
EndProcedure

If OpenWindow(#Window_Main,231,109,301,144,"Test",#PB_Window_SystemMenu|#PB_Window_ScreenCentered)
  BindEvent(#PB_Event_CloseWindow,@CloseWindowEvent())
EndIf
Fred
Site Admin
 
Posts: 1134
Joined: Mon Feb 24, 2014 10:51 am

Re: CloseWindow doesn't work on Mobile Device

by Fred Sun Jan 27, 2019 1:44 pm

seems to work here, can anyone confirm ?
User avatar
Paul
 
Posts: 47
Joined: Wed Feb 26, 2014 6:46 pm
Location: Canada

Re: CloseWindow doesn't work on Mobile Device

by Paul Sun Jan 27, 2019 3:23 pm

Compiled as APK on Galaxy S7 running Android 8 ... no close response with touch gesture
Running as web page in Chrome on Galaxy S7 running Android 8 ... no close response with touch gesture

Running as web page in Chrome on Galaxy S5 running Android 5... every 3rd or 4th close response is detected with touch gesture

Running as web page in Chrome on Galaxy Note3 running Android 6 ... works with touch gesture

Running as web page in Chrome on iPhone running 10.3 ... works with touch gesture
Running as web page in Safari on iPhone running 10.3 ... works with touch gesture

Running as web page in Chrome on Windows laptop ... works with mouse click
Running as web page in Safari on Mac laptop ... works with mouse click
Return to Bugs Reports

Who is online

Users browsing this forum: No registered users and 3 guests