Skip to main content
Participant
December 10, 2019
Question

createjs.Touch.enable(stage, false, true) Doesn't Work!!

  • December 10, 2019
  • 0 replies
  • 462 views

I'd like to touch enabled while still able to scroll, zoom when "initial touch" was on canvas (like normal canvas). 

...To be clear, I don't mean scrolling inside canvas. What I mean is to be able to scroll whole page, although the canvas just a small area (just in case when the user want to scroll he touch the canvas first).

 

From documentation, the 3rd param (allowDefault) seems to be the one.  But it doesn't work!!??

* @9397041 {Stage} stage The {{#crossLink "Stage"}}{{/crossLink}} to enable touch on.
* @9397041 {Boolean} [singleTouch=false] If `true`, only a single touch will be active at a time.
* @9397041 {Boolean} [allowDefault=false] If `true`, then default gesture actions (ex. scrolling, zooming) will be
* allowed when the user is interacting with the target canvas.

This topic has been closed for replies.