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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T10:27:59+00:00 2026-06-06T10:27:59+00:00

I am working on a Transformer Pad and developing a drawing plate. I use

  • 0

I am working on a Transformer Pad and developing a drawing plate.
I use PhoneGap(javascript) to write the code instead of JAVA.

But the touchmove event is quite weird.

I think as I move my finger on the pad, it will continuously to collect the coordinates which I
touch on the canvas. BUT IT DOES NOT!
It’s ridiculous, it only collect “1” coordinate: the first point on the canvas my finger moves to.

Here are my code about the “Touch && Move event”:

function touchStart(event){
    if (event.targetTouches.length == 1) {
    var touch = event.targetTouches[0];     

        if (event.type == "touchstart") {
            line_start_x= touch.pageX-  canvas_org_x;
            line_start_y= touch.pageY-  canvas_org_y;
            context.beginPath();                        
            context.moveTo(line_start_x, line_start_y); 

        }//if           
    }//if 1
}//function.

function Touch_Move(event){
    line_end_x= event.touches[0].pageX-  canvas_org_x;
                line_end_y= event.touches[0].pageY-  canvas_org_y;
                context.lineTo(line_end_x, line_end_y);
                context.stroke();
                test++;                 
}

I don’t know why each time I move my finger on the pad, trying to draw a line, curve, or anything
I want. As the finger moves, only a VERY SHORT segment appears. So I declare a variable:”var test=0″ in the beginning of this js file. I found that although I move my finger on the pad without leaving it or stopping, the value of “test” remains 1. It means that I move my finger on it. But it doesn’t
continuously to trigger the event: “Touch_Move”.

What can I do now? I need a corresponding event to “mousemove” on touch pad. At least, the event has to continuously be triggered.

                                                                   Thank you!
  • 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-06T10:28:01+00:00Added an answer on June 6, 2026 at 10:28 am

    Oh, Jesus. I finally find the answers:
    Please take reference for this site.

    If you work on an Android System,remember the ‘touchmove’ only fire ONCE as your finger
    moves around the pad. So if you wanna draw a line or something, you have to do this:

    function onStart ( touchEvent ) {
    if( navigator.userAgent.match(/Android/i) ) {   // if you already work on Android system, you can        skip this step
    touchEvent.preventDefault();     //THIS IS THE KEY. You can read the difficult doc released by W3C to learn more.
    }
    

    And if you have more time, you can read the W3C’s document about introducing the
    ‘movetouch’, it is REALLY hard to understand. The doc sucks.

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

Sidebar

Related Questions

I am working on the following code: import java.io.*; import javax.xml.parsers.*; import javax.xml.transform.*; import
I'm working on a small java project aiming to transform a BitSet into several
Working on a small game using an HTML5 canvas, and javascript. And it's working
I am a brand new Java developer (I have been working in asp.net) and
My same BASH script is working in Fedora/CentOS. But I am testing one Android
I am currently working on a Photoshop-like transformer application to work with DisplayObjects as
I am working on a kit of simple Java agents to help me (and
The following code isn't working for me: List results = getSession().createCriteria(User.class) .setProjection(Projections.projectionList() .add(Projections.property(userName)) )
I am new to vb this is the code i am working on: Dim
I'm working with an MS-SQL database with tables that use a customized date/time format

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.