0

我正在尝试在 Adob​​e edge 中编写一些代码。

目前我可以通过 x 值获取鼠标位置并控制时间轴。

mousemove:
this.onMove(posX, posY);

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

如何从页面顶部获取滚动距离并使用它而不是 posX?

4

1 回答 1

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

// insert code to be run when the composition is fully loaded here
this.onMove=function(posX, posY) {
    timelinecontrol = Number(posX)*2;
    console.log(timelinecontrol);
    sym.stop(timelinecontrol);


    sym.$("lblX").html("X:"+posX);
    sym.$("lblY").html("Y:"+posY);

}
于 2013-07-03T15:17:48.393 回答