[TIMOB-1131] preventDefault not working in web view
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2011-04-15T02:44:52.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.4.0 |
Components | iOS |
Labels | n/a |
Reporter | Nolan Wright |
Assignee | Blain Hamon |
Created | 2011-04-15T02:44:52.000+0000 |
Updated | 2017-03-02T19:22:02.000+0000 |
Description
Base UI => Views => Mixing Views
top view is a web with this:
document.body.addEventListener("touchmove", function(e) {e.preventDefault();}, false);
but it still scrolls - this had worked previously
Ran the test against HEAD, Base UI -> Views -> Mixing Views and tried to scroll the web view. With this line in it, it didn't scroll. With the line removed, it did. Seems like preventDefault() works.
which line are you talking about?
The line in question:
document.body.addEventListener("touchmove", function(e) {e.preventDefault();}, false);
When the HTML reads:
(with the event listener present) things work. More accurately, it worked in 3.2 simulator.
Additional confirmation on this might be good. I'll test on 3.1 and 4.0 device.
Confirmed. Doesn't work in 3.1, does work in 3.2 and 4.0. Must be a Safari thing.
Closed as invalid.