【问题标题】:Touchmove event is not working in Edge Animate CCTouchmove 事件在 Edge Animate CC 中不起作用
【发布时间】:2017-08-30 01:09:51
【问题描述】:

我是一名平面设计师,使用最新的 Edge Animate CC 2015 的代码技能有限。我想通过在信息亭触摸屏(由Windows 触摸屏笔记本电脑。我不希望屏幕上出现任何滚动条)。我在 YouTube (https://www.youtube.com/watch?v=wUJ63cBwS1I) 上观看了 Paul Trani 的视差效果视频并尝试了以下操作:

在compositionReady 代码窗口...

this.onMove=function(posX, posY){
timelinecontrol = Number(posX)*2.5;
console.log(timelinecontrol);
sym.stop(timelinecontrol);
}

在touchmove代码窗口:

this.onMove (e.pageX, e.pageY);

但它不适用于 touchmove 事件。但是,当我像保罗的原始视频一样将最后一行放在 mousemove 代码窗口时,它照常工作。

为了记录,我安装了以下脚本:

jquery-ui-1.10.4.min.js
jquery-mobile-1.4.2.min.js
jquery.ui.touch-punch.min.js
jquery-2.0.3.min.js

您认为没有使用任何更新的脚本会导致此问题吗?某些浏览器/平台是否存在任何 HTML 5 不兼容问题?

我还尝试了 adobe 论坛的以下代码...

$(window).on "mousemove touchmove", (e) ->
  touch = undefined
  if e.originalEvent.touches
    touch = e.originalEvent.touches[0]
  pos_x = e.pageX

但 Edge Animate CC 在第一行发现系统语法错误。有什么建议可以在最新的 Edge Animate 中采用吗?我尝试了“舞台”或“窗口”但失败了。

【问题讨论】:

    标签: jquery touchmove


    【解决方案1】:

    尝试使用 touchstart 代替 touchmove 事件

    【讨论】:

      猜你喜欢
      • 2016-11-06
      • 1970-01-01
      • 2014-05-07
      • 2018-10-05
      • 2023-04-06
      • 2019-02-26
      • 2017-04-01
      • 2018-11-19
      • 2020-12-21
      相关资源
      最近更新 更多