touch events vs mouse click events using actionscript 3

后端 未结 3 1879
别跟我提以往
别跟我提以往 2021-02-02 02:08

Just wanted to ask if there is any advantage for either using mouse click event or touch tap events, when writing apps for mobiles or tablets (for the iphone especially)?

<
3条回答
  •  春和景丽
    2021-02-02 02:41

    Excellent question! Tap events are "technically" slower as they monitor multiple input points. If your only concerned with a single touch input, the standard mouse event system is just fine. For touch events, there's a couple objects being created per listener to assist in handling the multitouch functionality (however this is close to a tiny fractional ms loss in performance).

提交回复
热议问题