confirm buttons touch

Hi,
we have the users complaining that sometimes the buttons in a “confirm” popup doesn’t work properly in a Touch enviroment.
When touching/clicking the given Text often the button doesn’t activate a click event. but when touching/clicking NOT on the text part it react as expected.
Does anybody experience the same? How can we change this effect?

thanks

Hi!

Does it happen on some particular kind of device/OS/browser? Is the touch mode enabled?

As far as I can see, in a basic webix.confirm implementation all is OK, so if there are any details, it will help us to find the issue.

It happens only on Android (5.x or higher) (in WebView enviroment)
Not on ‘normal’ buttons but only in the “webix.confirm”

Unfortunately, we weren’t able to reconstruct the issue from our side.

webix.confirm uses native HTML buttons without any special click handling, so they must behave the same as any other controls on the page.

thanks,
when i’m able to reproduce and can give you a good description how we manage to get the problem i will let you know

Hi, problem solved.

Problem depends on 2 parts:

  • user “TouchEnd” ends possible not on the button but in the surrounding of the button (buttons can be to small in an Android enviroment).

  • in Android the "button down’ event doesn’t show a pushed button.
    so we’ve to add for each button:
    ‘onTouchStart’: function (ctx) { setButtonDownclass( ctx, true); }
    , ‘onTouchEnd’: function (ctx) { setButtonDownclass( ctx, false); }

Function setButtonDownclass()
adds or removes a buttondown style