Search the Community
Showing results for tags 'Gestures'.
I am still having a hard time with a Listbox and distinguishing between "touch" to select and item in a listbox on a desktop/laptop browser.....and "touch" to begin scrolling (e.g. on a phone/tablet) Using a basic example listbox with 100 items procedure TForm1.Resize; var i: integer; begin inherited; W3ListBox1.Clear; for i:= 1 to 100 do W3ListBox1.Add('Item ' + inttostr(i)); W3ListBox1.SetBounds(0,0,width,height); end; When a user is using the desktop/laptop browser, I need them to be able to use both mouse and touch (case their monitor is touch) to "scroll"
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