3 ms·
any element can prevent the default action at any time. flash, or not flash, it's like two lines of javascript.
by boucher 17y ago
any element can prevent the default action at any time. flash, or not flash, it's like two lines of javascript.
- glhaynes 17y agoWhat do you mean? I don't recall ever using Safari on iPhone and having tap-and-hold not do the Safari default thing (pop up contextually-dependent menus giving choices like "Copy" and "Open in New Window" for links, "Save" and "Copy" for images, etc) and don't think that JavaScript has access to that.
- Zev 17y agoThe closest thing that I can think of is -webkit-user-select, although I'm not sure if thats available on the iPhone. Nor would it let you change UIMenuController behavior. I suspect that if it is possible, it would be under an NDA. That is, after all, how these things seem to work. Would love to be wrong though. Alternate, Occams Razor take: Apple just hardcodes the options, based on the type of object that is selected.
- deleted 17y ago[deleted]
- tvon 17y agoA user would still have to understand why trying to grab+drag to scroll would work on one part of a page but inexplicably not on another part (eg, a Flash ad). Most likely it would be a crap shoot between pages that took the iPhone/iPad into account, and those that would confusingly not work.