DesktopApp:
the hole uniscrollbox should be swipe to left and right .. not the content !
i tried to become a delphi event when i swipe a uniscrollbox (NOT the content..) - but i get error: Cannot read property 'addEventListener' of null
For Test -> please put a uniscrollbox1 and a tunihtmlframe1 on a form:
Form->OnCreate:
unihtmlframe1.HTML.Clear;
unihtmlframe1.HTML.Add('<script> ');
unihtmlframe1.HTML.Add('class SwipeEventDispa
OK .. i got it 🙂
this is just for Fingertouch ..
1.) i use: https://github.com/john-doherty/swiped-events/blob/master/src/swiped-events.js
2.) uniscrollbox - ClientEvent - ExtEvent
function afterrender(sender, eOpts)
{
sender.getEl().dom.addEventListener('swiped-left', function(e) {
ajaxRequest(sender, '_left',[]);
console.log(e.target); // the element that was swiped
});
sender.getEl().dom.addEventListener('swiped-right', function(e) {
ajaxRequest(s