Search the Community
Showing results for tags 'event'.
I needed to catch mobile double-tap events. There is no such thing as a double-tap event, therefore I used the code below to translate double taps (rapid consecutive touchstarts) into double-clicks. Which works fine. var window external 'window': variant; var Twice : boolean := false; procedure tapHandler(e: variant); implementation procedure tapHandler(e: variant); begin //replaces double taps (consecutive touchstart events) into dblclicks if not Twice then begin Twice := true; Window.setTimeout( procedure() begin Twice := false; end, 300 ); end else begin e.prev
I have a TW3ScrollControl on my form (with clickable images (icons) as menu items on the ScrollControl ) I have mouse and touch events to allow user to select a menu item depending on whether app is run in browser or other device. fOnMenuItemClick: TMouseClickEvent; fOnMenuItemTouch: TTouchBeginEvent; When I test it in browser, I can't use the scroll feature of TW3ScrollControl because it looks like it was designed for gestures not mouse When I test in on my phone, I can't use the gestures because it thinks I am touching the menu items and that event gets kicks off instead wh