0
我使用一些第三方軟件從PDF創建交互式書籍。我可以看到它是如何工作的,但不知道如何使移動/平板電腦版本與Apple設備上的鏈接完美配合。在蘋果設備上觸摸事件
最初的PDF包含創建的鏈接(在Acrobat中完成),PDF然後導入並創建Web版本。 它創造了這些鏈接產生的JavaScript是如下..
var pageEditor = [[], [], [], [], [], [], [], [],
[{
annotype: "com.mobiano.flipbook.pageeditor.TAnnoLink",
action: {
triggerEventType: "mouseDown",
actionType: "com.mobiano.flipbook.pageeditor.TAnnoActionOpenURL",
url: "http://www.canal30apartments.com/360/viewer/mezz-lower.html"
},
location: { x: "0.085024", y: "0.067632", width: "0.184540", height: "0.180675" }
},
{
annotype: "com.mobiano.flipbook.pageeditor.TAnnoLink",
action: {
triggerEventType: "mouseDown",
actionType: "com.mobiano.flipbook.pageeditor.TAnnoActionOpenURL",
url: "http://www.canal30apartments.com/360/viewer/mezz-upper.html"
},
location: { x: "0.764247", y: "0.694682", width: "0.174878", height: "0.180676" }
}],
[{
annotype: "com.mobiano.flipbook.pageeditor.TAnnoLink",
action: {
triggerEventType: "mouseDown",
actionType: "com.mobiano.flipbook.pageeditor.TAnnoActionOpenURL",
url: "http://www.canal30apartments.com/360/viewer/standard.html"
},
location: { x: "0.759417", y: "0.556518", width: "0.184540", height: "0.182609" }
}],
[], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], []];
的mousedown
事件工作的三星設備上,但似乎並沒有在蘋果設備上工作。我會對這種情況感興趣,但主要是詢問是否有人可以幫助我們如何改變代碼以捕捉蘋果設備?
所有我能想到的是...
triggerEventType:"touchstart"
感謝
謝謝,但在這種情況下, '{triggerEventType:「touchend」' 不會導致它在任何移動設備上工作 –