Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9078349
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T19:35:59+00:00 2026-06-16T19:35:59+00:00

I have a jQuery Mobile application that I’m trying to run on a Galaxy

  • 0

I have a jQuery Mobile application that I’m trying to run on a Galaxy Tab device via Phonegap. Everything works as expected, but I have a swipe used to transition between a set of pages and it is horrendously laggy.

I’m actually using knockoutJS and a custom binding like this:

<!-- ko foreach: factors -->
<div data-role="page" data-bind="attr: { id: id }, swipe: $data"> 
    <!-- some content here that I don't *think* is the problem -->
</div>
<!-- /ko -->

ko.bindingHandlers["swipe"] = {
    init: function (element, valueAccessor) {
        var qe = $(element);
        var val = ko.utils.unwrapObservable(valueAccessor());
        qe.bind("swipeleft", function () {
            var next = qe.next("div[data-role='page'][data-bind*='swipe']");
            if(next.length) {
                $.mobile.changePage(next, {
                    transition: "slide"
                });
            } else {
                qe.effect("shake");
            }
        });
        qe.bind("swiperight", function () {
            var prev = qe.prev("div[data-role='page']");
            if(prev.length) {
                $.mobile.changePage(prev, {
                    transition: "slide",
                    reverse: true
                });
            } else {
                qe.effect("shake");
            }
        });
    }

I tried removing pretty much all the content from the pages and that didn’t help. I tried replacing the slide transition with none and that helped a little, but the performance is still unacceptably slow.

Any tricks or tips to make this work reasonably well?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T19:36:01+00:00Added an answer on June 16, 2026 at 7:36 pm

    This gave me a partial solution at least:

    Swipe with jQuery Mobile 1.2, PhoneGap 2.1 and Android 4.0.4 not working properly

    It seems that binding vmousemouse and setting it to preventDefault makes the swipes work much better, but at the same time it disables scrolling!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a dynamic MVC4, jQuery Mobile application that works for the most part
I have an application made by using phonegap 1.5.0 and jquery mobile 1.1.0.... I
I have a jQuery Mobile website that works great on normal browsers, but it
I have a jquery-mobile application that is running inside a UIWebView in an iphone
I have a mobile single-page web application that is built using jquery-mobile (jqm) and
I have three single html pages in jquery mobile application with phonegap. From a
I have a single page jQuery mobile application that consists of several list views
I have a jQuery Mobile PhoneGap app that loads all of my pages fine,
I have a JQuery Mobile (1.0rc1) application that has a list view with a
I'm currently working on a PhoneGap application that uses jQuery, jQuery mobile and a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.