Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upforcetouch events #9811
forcetouch events #9811
Conversation
highfive
commented
Feb 29, 2016
|
/cc @mbrubeck |
|
No spec at all? Seems like a definite no. |
|
Matthew thought this might be handled in part by touch events 2, but that appears not to be the case. We're still kind of digging around to see where it belongs. I would like to get it in servo since it is really nice and Safari already has it. It makes for amazing demos. |
|
I'll add a pref. |
a98e42f
to
656f7a8
|
The events only fire if the pref Can someone look at this and tell what needs to be done to land that? |
|
We probably want this too: #10081 |
|
The code looks good to me, with some minor comments (below). Before I r+ this, any objections to landing this non-standard feature behind a pref and prefix? Do we need to block on #10081? Do we need a way to make "chrome-only" features? -S-awaiting-review +S-needs-code-changes +S-needs-decision Reviewed 1 of 10 files at r1, 10 of 10 files at r2. components/script/dom/document.rs, line 218 [r2] (raw file): components/script/dom/document.rs, line 798 [r2] (raw file): Comments from the review on Reviewable.io |
Just FYI, so far, "chrome" features are: Mozbrowser API and cross-origin xhr (WIP #10068). Both are only available if 1) the mozbrowser pref is turned on 2) the API is used in the root pipeline. |
|
Addressed comments. I remove |
|
@bors-servo r+ Reviewed 10 of 10 files at r3. Comments from the review on Reviewable.io |
|
|
|
(rebased and added pref to prefs.json) |
This enables Apple forcetouch DOM events. It requires the preference dom.forcetouch.enabled. The DOM events are described here: - https://developer.apple.com/library/mac/documentation/AppleApplications/Conceptual/SafariJSProgTopics/RespondingtoForceTouchEventsfromJavaScript.html The Cocoa mechanism is documented here: - https://developer.apple.com/library/mac/documentation/Cocoa/Reference/ApplicationKit/Classes/NSEvent_Class/#//apple_ref/doc/uid/20000016-SW274
|
@bors-servo retry infra |
|
@bors-servo: r=mbrubeck |
|
|
forcetouch events https://developer.apple.com/library/mac/documentation/AppleApplications/Conceptual/SafariJSProgTopics/RespondingtoForceTouchEventsfromJavaScript.html Not sure how we want to land that yet. Maybe reproduce the webkit events (as in this PR), or as touch/mousemouse events. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9811) <!-- Reviewable:end -->
|
|
|
|
@bors-servo: retry |
forcetouch events https://developer.apple.com/library/mac/documentation/AppleApplications/Conceptual/SafariJSProgTopics/RespondingtoForceTouchEventsfromJavaScript.html Not sure how we want to land that yet. Maybe reproduce the webkit events (as in this PR), or as touch/mousemouse events. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9811) <!-- Reviewable:end -->
|
|
paulrouget commentedFeb 29, 2016
https://developer.apple.com/library/mac/documentation/AppleApplications/Conceptual/SafariJSProgTopics/RespondingtoForceTouchEventsfromJavaScript.html
Not sure how we want to land that yet. Maybe reproduce the webkit events (as in this PR), or as touch/mousemouse events.