-
Notifications
You must be signed in to change notification settings - Fork 13.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
on-hold directive not working in ion-slide-box #2373
Comments
Reference this issue, now closed: |
Related to gesture detection problems in Android 4.4? |
UPDATE: I tried disabling the scrolls for all ion-content using scroll="false". I got some interesting results. Tap hold works every other time, consistently. That is, between each tap-hold event there needs to be another event (like a tap or swipe) before the tap-hold will work again. Doing all tap-holds in a row results in tap-hold, click, tap-hold, click, tap-hold, click, etc. I suspect something about the tap-hold event is not resolving at the end which causes the next tap-hold to fail. Again, this is with all scrolls disabled. With scrolls enabled the problem is much worse and less predictable, so there is additional element at play there. Please let me know how if you have any updates, once again my app is dead in the water until this is resolved. Thanks again for all your hard work! Marc |
Any news on this? In order to work around it I will have to change the UI paradigm of my app significantly. Please let me know if there is someone taking a look at this. Thanks, |
Is anybody else having this problem or is it just me? |
Looking in to this right now. |
Fantastic! Happy to hear it. |
Alright, so I didn't get a chance to go through your code to see what was causing the problem, but I believe it might have to do with how you have nested Anyway, I isolated the
Can you try updating to the latest nightly, removing the |
As a side note, while building the example, I was experimenting with The interesting part is that when I use |
Hm. No success here. First, I'm not sure what you mean by "having ng-click and on-click defined". I do not have them defined on the same element, or on parent/child elements. Also, this code has been working in the past, so I'm not sure what the issue would be. I tried replacing the outer content with a pane and the inner contents with scrolls. It didn't solve my tap-hold problems and now my slides don't scroll. Your codepen has the same problem. Add content to your slides to make it longer than a single screen and you will see that it doesn't scroll properly. Are you using an actual device, or just the simulator? Everything works fine in my simulator, it's when I use on a device that I have the problems. Thanks, |
Just an FYI, this is still a problem for me. Also, I tested on a Nexus 5 with Android 5.0 and the tap-hold problem exists there as well. Marc |
Add'l info to clarify. The tap-hold issue only exists inside a slide-box. Outside a slide-box, it seems to work fine. Marc |
Hey @marcsyp, so I tested things out using this codepen as a basis. I was able to get the |
Yeah, it works on my old Droid RAZR MAXX as well. The problem only exists on Android 4.4.4 and up. |
Yes. Happening to me. I use on-hold on my 4.4.2 and iOS devices and works fine, but on 4.4.4 nothing happens.I am using it on a div within an ion-content |
I noticed that some of the other touch event issues are being closed with recent updates. This one is still open, and it is my primary problem with my app right now. Basically halted development for several months. Any updates? If there is a fix by moving to latest nightly and Crosswalk, etc, I will make the effort to upgrade (I'm stuck in Beta13, I believe). Thanks, |
@marcsyp Suggest using mnTouch if updates dont' work. We are using that for on-hold right now and it works great. |
Thanks. Any specific notes on implementing this in Ionic? Do I need to rip out anything from the Ionic bundle that will conflict? I'm not an expert, still working my way around these kinds of custom mods. Thanks, |
No. We just got an mnTouch from its git repository and used the appropriate attribute on the tag we were interested in listening to. I think if you have an additional event such as a click on the same element you want to use mnTouch for both events. We didn't touch Ionic at all, just used mnTouch where we had problems. -----"Marc Syp" [email protected] wrote: ----- =======================
|
Please see: #1729 (comment) -----"Marc Syp" [email protected] wrote: ----- =======================
|
This issue has been fixed with the most recent updates to nightly. Tested Android 4.4.4. |
Great! This actually worked for me, too. It requires some messing with the default thresholds to get right when you're inside a slide box and using other interactions, but it is MUCH better than the broken interactions I had before. Thanks! Marc |
This seems to still be broken. I tested this today on an s5 running 4.4.4. Using mnTouch still solved the issue for us. It DOES work fine for 4.4.2 (s4) and 5.0.1 (Nexus 9) -Don |
With the recent update to Android 4.4.4, the on-hold directive is no longer working consistently. I am using the nightlies with the refactored slide-box (as of yesterday), this does not solve the issue.
I am able to engage the tap-hold only maybe 1 in 5 tries, or even 1 in 20 to 30 in some cases. I have put together a sample project with an ng-repeat of a number of items within a single slide. I suspect that vertical scroll may have something to do with it, but I don't see any docs on disabling the scroll within a slide to test.
You can find the project here:
https://drive.google.com/file/d/0B1ClGdseCfJdS09XN3JfbXp2Ykk/view?usp=sharing
Thanks.
The text was updated successfully, but these errors were encountered: