Skip to content
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

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

Closed
ablegao opened this issue Jul 10, 2015 · 0 comments
Closed

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

ablegao opened this issue Jul 10, 2015 · 0 comments

Comments

@ablegao
Copy link

ablegao commented Jul 10, 2015

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 ,

@ablegao ablegao changed the title canvas.addEventListener touchmove doesn't work bug: canvas.addEventListener touchmove doesn't work Jul 10, 2015
@ablegao ablegao closed this as completed Jul 10, 2015
@ablegao ablegao reopened this Jul 10, 2015
@ablegao ablegao closed this as completed Jul 10, 2015
@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Sep 7, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant