I have an application based on the side menu template and have added an “on-hold” event to ion-item which will show an action sheet.
This works fine on iOS (iPad 2) and an Android tablet. However, it appears the event is not triggered on a Sony Xperia Z1 compact (phone) running Android 4.4.4. If I added an alert into the on-hold event handler it does not display. However, after trying a tap-hold many, many times on the device, it triggered once but never again!
Hey @phancox, did you every find a way around this? I’m having a similar problem on a different device where the event only fires once then never again.
It’s been a while since I worked on it so can’t remember the details. I think I was looking to pop up a context sensitive menu on tap-hold. As this was only providing a secondary path to selecting the object and displaying the appropriate actions directly, I just left it in the hope that it would eventually start working.
I am also facing similar issue in Samsung galaxy S6. I am applying on-hold on list item. This works perfectly for me in iPhone 5s. There is also a issue with :active pseduo selector not being applied to list item which is “div” based.
I too am plagued by this issue. It appears to be related to the devices screen sensitivity. The event on-hold gets canceled when the ionic detects a scroll. Works most of the time on the iPhone (with the exception ahead), but on my Nexus 5 it’s super tricky.
If I’m highly precise and deliberate I can usually get the damn thing to fire, but that’s no solution.
I’m thinking that there might be a solution in stopping the scroll from happening when a press of a specific type of button is pressed.
Thanks, the problem is that I have some buttons that use on-hold and they’re within the ion-content, so they would go back to the same on-hold issue I presume.
Funny enough, I just tried using the $ionicConfigProvider.scrolling.jsScrolling(false); on an actual device and it worked. Now in the emulator the scrolling it is not working. Should I leave it as it is or should I be concerned about some compatibility issues?
I’m also facing the same issue with device. In ripple it works perfect, but in android devices (Samsung Note 4 and J1) on-hold is not firing.
I gave on-hold to ion-item, it that a problem?