phonegap에서 webview가 위아래로 움직이는걸 멈추고 싶을때.
화면이 위아래나 좌우로 흔들리는걸 막을때.

~delegate.m

[[
webView.subviews objectAtIndex:0] setScrollEnabled:NO];  //to stop scrolling completely
[[webView.subviews objectAtIndex:0] setBounces:NO]; //to stop bouncing

------
document.onload = function(){
    document.ontouchmove = function(e){ e.preventDefault(); }
};


크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기(0) 이올린에 추천하기(0)

Posted by 홍반장

2011/06/13 20:51 2011/06/13 20:51
Response
No Trackback , No Comment
RSS :
http://tcbs17.cafe24.com/tc/rss/response/6222

Trackback URL : http://tcbs17.cafe24.com/tc/trackback/6222

« Previous : 1 : 2 : 3 : 4 : 5 : 6 : ... 91 : Next »

블로그 이미지

- 홍반장

Archives

Recent Trackbacks

Calendar

«   2024/12   »
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31        
Statistics Graph

Site Stats

Total hits:
245370
Today:
136
Yesterday:
512