Skip to content

bug: canvas.addEventListener touchmove doesn't work #4067

Closed

Description

@ablegao

Type: bug

Platform: ios 8 webview

I have a ion-view :

<ion-view view-title="战斗" can-swipe-back=false >
<ion-content scroll="false" >
<canvas  style="min-height:100%;width:100%;"  id="canvas" ></canvas>
</ion-content>

In my contoller .

 var canvas  = document.getElementById("canvas");
 canvas.addEventListener("touchmove",$scope.touchmove,false);
 canvas.addEventListener("touchstart",$scope.touchmove,false);
 canvas.addEventListener("touchend",$scope.touchmove,false);

 $scope.touchmove=function(){

        console.log("YES")
  }

But , this doesn't work ,

Activity

  1. changed the title [-]canvas.addEventListener touchmove doesn't work[/-] [+]bug: canvas.addEventListener touchmove doesn't work[/+] on Jul 10, 2015
  2. locked and limited conversation to collaborators on Sep 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions