[問題] Google Maps API, right click, on ipad

看板Web_Design作者時間12年前 (2012/03/13 08:19), 編輯推噓4(404)
留言8則, 2人參與, 最新討論串1/2 (看更多)
Hi guys, This is the question that has bothered me for a long while. I am working a website with Google Maps API functionalities, Everything works just fine until we need to allow it on ipad. Clearly there is no "right click" on a tablet, but I didn't figure out any other mouse motion that can replace right click. Is there anyone know how to resolve this issue? Thank you very much. -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 143.215.17.252

03/13 09:16, , 1F
一般右鍵應該都是以長按時間來判斷,可以試試看
03/13 09:16, 1F

03/13 09:18, , 2F
you can try to use 'taphold' under jQuery mobile lib
03/13 09:18, 2F

03/13 09:18, , 3F
To implement the right click function, try to use
03/13 09:18, 3F

03/13 09:19, , 4F
'long click' to do it.
03/13 09:19, 4F

03/13 09:19, , 5F
啊 這是web不是program="= .. 我忘了
03/13 09:19, 5F

03/13 09:21, , 6F
原生javascript 沒有長按 沒有這事件,要自己寫
03/13 09:21, 6F

03/13 12:08, , 7F
恩= =是我看錯,我寫android+gmap 是寫在android上
03/13 12:08, 7F

03/13 12:08, , 8F
忘記他是寫網頁的了
03/13 12:08, 8F
文章代碼(AID): #1FNfAPFT (Web_Design)
文章代碼(AID): #1FNfAPFT (Web_Design)