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 6866489
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T03:11:25+00:00 2026-05-27T03:11:25+00:00

I am trying to create a HTML5 web application for iPhone. I am using

  • 0

I am trying to create a HTML5 web application for iPhone. I am using jQuery Mobile for it. My application involves drawing in canvas. It is much like a paint application that utilizes the canvas for rendering the sketch. A user can swipe across the screen from any direction and the app should be able to figure out the positions and then draw line across the points.

jQuery Mobile provides only some of the following basic event for the swipe control but I think I need some more control over the swipe since user can swipe in any direction and can be any pixel long. On the other hand I should be able to capture most of the points so that I could visualize the drawing more clearly and precisely.

tap
Triggers after a quick, complete touch event.
taphold
Triggers after a held complete touch event (close to one second).
swipe
Triggers when a horizontal drag of 30px or more (and less than 20px vertically) occurs within 1 second duration.
swipeleft
Triggers when a swipe event occurred moving in the left direction.
swiperight
Triggers when a swipe event occurred moving in the right direction.

Is there any other techniques that I should follow to create a drawing application in the canvas for iOs applications? Any help will be appreciated.

  • 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-05-27T03:11:25+00:00Added an answer on May 27, 2026 at 3:11 am

    Some events you missed on the Event page of the jQuery Mobile Documentation are the virtual events: http://jquerymobile.com/demos/1.0/docs/api/events.html

    vmousedown
        Normalized event for handling touchstart or mousedown events
    
    vmousemove
        Normalized event for handling touchmove or mousemove events
    
    vmouseup
        Normalized event for handling touchend or mouseup events
    
    vmousecancel
        Normalized event for handling touch or mouse mousecancel events
    

    I would use the vmousedown event to start tracking the cursor’s movement, vmousemove to continue tracking the path of the cursor, and vmouseup to finish tracking the cursor’s movement.

    A simple example would be:

    //setup a variable to store the cursor's movement
    var tracks = [];
    
    //bind to the three events described above
    $(document).bind('vmousedown vmousemove vmouseup', function (event) {
    
        //check to see what event is being fired
        if (event.type == 'vmousedown') {
    
            //if the `vmousedown` event is fired then reset the value of the `tracks` variable and add the first point to the variable
            tracks = [{ x : event.pageX, y : event.pageY}];
        } else if (event.type == 'vmousemove') {
    
            //if the `vmousemove` event is fired then add a new point to the `tracks` variable
            tracks.push({ x : event.pageX, y : event.pageY});
        } else if (event.type == 'vmouseup') {
    
            //if the `vmouseup` event is fired then the user is done drawing and you can draw their line for them
        }
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to create a mobile version of a web application using VS2010
I am trying to create a simple iPhone application using HTML/JavaScript/CSS with the help
I am trying to create an application to print documents over the web. I
I am trying to create a simple web app using Python on GAE. The
I've been trying to create a web site just with a jsfiddle.net application. I'd
I am trying to create a web page using php. The problem is that
We are developing web browser application for mobile phones and I am trying to
I am trying to create an asp.net web application, in which when user logins
I am trying to create a login system for a web application, but I
So my situation is simple (IMHO): I am trying to create web-esque Java application

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.