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

Scrolling problem w/ jQuery Mobile and android 2.x #106

Closed
azicchetti opened this Issue Apr 17, 2013 · 2 comments

Comments

Projects
None yet
2 participants
@azicchetti
Copy link

azicchetti commented Apr 17, 2013

Hi,
I have problems when mobiscroll is used in forms that take up a lot of vertical space.
My testing environment includes jQuery Mobile 1.3.0 and android 2.x.
I also set certain values for the meta viewport tag.

As you can see here with the android 2.x browser (even the simulator is enough):
http://fiddle.jshell.net/ZBScT/17/show/light

when an user taps on the date field, the mobiscroll modal is scrolled out of view. The page cannot even be scrolled by hand because touchmove is disabled until the next touchstart.

I've found a temporary solution but it's a horrible hack (it works under cordova/phonegap):

      if (device.platform=='Android' && parseInt(device.version)==2){
        console.log("fixing a problem with mobiscroll");
        $(":jqmData(role=mobiscroll)").on("touchstart",function(e){
          e.preventDefault(); e.stopPropagation();
          var $this=$(this);
          setTimeout(function(){ $this.mobiscroll('show'); }, 300);
        });
      }

Is there a way to fix this? Thank you very much.

dioslaska added a commit that referenced this issue Jun 28, 2013

@dioslaska

This comment has been minimized.

Copy link
Contributor

dioslaska commented Jul 2, 2013

Fixed in 2.6.1

@dioslaska dioslaska closed this Jul 2, 2013

@dioslaska

This comment has been minimized.

Copy link
Contributor

dioslaska commented Jul 2, 2013

Fixed in 2.6.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment