Giter Club home page Giter Club logo

Comments (11)

sourcebits-robertbiggs avatar sourcebits-robertbiggs commented on July 30, 2024

I'm assuming you're talking about the native browser on Android. It does have a number of weird bugs affecting JavaScript events not executing as expected. Are you saying that when the list is very long, it takes two tabs to trigger a tab switch?

from chocolatechip-ui.

RadekVala avatar RadekVala commented on July 30, 2024

Yes, it happens in native browser on Android, in chrome it is OK (only desktop). The
content could be short, but if it is scrolled under the tab bar, first tap
only highlights the tab and the second triggers normal action - transition
to another page.

It is like the content under the tab bar, changes the way of tap event
handling.

EDIT:
The behavior is buggy in native browser but also in Chrome for Android (v 36.0.1985.135). I guess the problem should appear also in Android 4.4, but have not tested.

2014-09-03 22:31 GMT+02:00 sourcebits-robertbiggs [email protected]
:

I'm assuming you're talking about the native browser on Android. It does
have a number of weird bugs affecting JavaScript events not executing as
expected. Are you saying that when the list is very long, it takes two tabs
to trigger a tab switch?


Reply to this email directly or view it on GitHub
#86 (comment)
.


Ing. Radek Vala
731 123 409

from chocolatechip-ui.

sourcebits-robertbiggs avatar sourcebits-robertbiggs commented on July 30, 2024

Yes. I can confirm this behavior. It appears that after scrolling, the browser is getting confused about where the focus is and not firing the initial tap. I'll need to spend some time troubleshooting. A workaround for a quick fix in your case might be to switch out the singletap for a $.eventStart in the tab bar code. Let me experiment and I'll get back with you with a workaround.

from chocolatechip-ui.

sourcebits-robertbiggs avatar sourcebits-robertbiggs commented on July 30, 2024

So, I think I've resolved this issue. Please take a look at the latest checkin and let me know. I had added a chunk of code to implement swipe gestures on Android since Google had requisitioned them for browser history navigation. That code, which had a very short gesture detection, was causing the tap after a scroll from not being detected.

from chocolatechip-ui.

RadekVala avatar RadekVala commented on July 30, 2024

I can confirm, that the issue is resolved. Thank you, nice work.

As for the user experience, there is still little issue, when you scroll the long list. The list is scrolling and you tap the Tabbar, sometimes, it also only highlights the tab withnout transition. The tap only stops scrolling of the list, highlights the Tabbar with gray color and nothing else happen. But this is not the crucial problem and happens only when long list is scrolling at the moment.

from chocolatechip-ui.

sourcebits-robertbiggs avatar sourcebits-robertbiggs commented on July 30, 2024

Well, that is an Android specific issue which has nothing to do with gestures. Google controls how interactions happen when something is scrolling. I'm sure if you interrupt the scroll, everything works fine. For several years now I have been dealing with a large number of Android browser event bugs. And this is the best I've been able to accomplish. Fortunately, Windows Phone 8 and iOS browsers have consistent event systems. Google doesn't seem to care much about their Android browser, instead giving all their attention to native app development.

from chocolatechip-ui.

RadekVala avatar RadekVala commented on July 30, 2024

I agree, this is the downside of hybrid MA in Android world. However,Tabbar
component is now OK, and if the scrolling is interrupted, everything works
fine.

2014-09-09 16:18 GMT+02:00 sourcebits-robertbiggs [email protected]
:

Well, that is an Android specific issue which has nothing to do with
gestures. Google controls how interactions happen when something is
scrolling. I'm sure if you interrupt the scroll, everything works fine. For
several years now I have been dealing with a large number of Android
browser event bugs. And this is the best I've been able to accomplish.
Fortunately, Windows Phone 8 and iOS browsers have consistent event
systems. Google doesn't seem to care much about their Android browser,
instead giving all their attention to native app development.


Reply to this email directly or view it on GitHub
#86 (comment)
.


Ing. Radek Vala
731 123 409

from chocolatechip-ui.

sourcebits-robertbiggs avatar sourcebits-robertbiggs commented on July 30, 2024

Actually, that only resolves the issue for mobile Chrome. The native browser is still bonked. But I have an idea. I'm thinking I'll put a test for Android and change the tab bar button events to touchStart instead of singletap. Since tab bars on android are at the top, that shouldn't affect scrolling. Using touchStart on anything that can scroll means the touchStart fires before you can scroll, doh! I'll let you know how this goes. If it resolves it, I'll push it.

from chocolatechip-ui.

sourcebits-robertbiggs avatar sourcebits-robertbiggs commented on July 30, 2024

OK, that worked! I've pushed it, so check the latest. Tab bar buttons in native browser now using touchStart events and working as expected.

from chocolatechip-ui.

RadekVala avatar RadekVala commented on July 30, 2024

Nicely done!

I am testing in a Phonegap App on Android 4.1.2 - it means in native browser. The behavior before this fix was satisfactory, but with the scrolling list issue. After this fix, I can confirm that it works like a charm!

from chocolatechip-ui.

sourcebits-robertbiggs avatar sourcebits-robertbiggs commented on July 30, 2024

Yeah, I'm happy how this turned out. I've been bugged by this bug for some time. I really appreciate your help in eliminating it. Thanks a bunch.

from chocolatechip-ui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.