Slidebars
Slidebars copied to clipboard
Problems with toggle on HTC One's default browser
Hey,
First off, awesome work. I have enjoyed implementing this into my current project.
While doing a round of testing on various devices there was an issue on HTC default browser that would cause the sidebar to open and close the first time properly but every time after that would close immediately after opening.
Instead of using toggle i ended up splitting it up like so to get the job done.
if($('html').hasClass('sb-active')) {
$.slidebars.close();
}
else {
$.slidebars.open('left');
}
Again, not sure if this is an actual bug but though it's worth mentioning.
Thanks.
Hi there,
Thanks for letting me know.
What version of Android is your HTC One running? Are you using the API? Do you have a demo url I can test it on?
Thanks, Adam
Also are you using Slidebars 0.10.2?
Yes, I am using 0.10.2 and the API featured you have implemented. The Android version on the phone is 4.4.2.
I unfortunately can't share the site, company policy. However, I tested it on the HTC with Chrome and Firefox and it works fine.
I couldn't find much information on the default browser that comes with the HTC. I spoke with an android developer and he explain how the HTC and other newer Android phones have this feature that you can hover over icons or even swipe without actually touching the screen.
I'm wondering if the click event get's fired multiple times alongside the toggle feature. Still dosn't explain why it works the first time when you open and close but I hope this information helps.
I will update any information I get.
Ok thanks for letting me know.
Slidebars accepts touch and click events, but if I touch event is fired, it turns off clicks so open and close methods don't fire off multiple times.
When I get time, I'll see if I can find a couple of emulators to test on as I don't have a HTC One.
I'll keep you updated with any progress here.