Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15304368
D18044.id43417.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
4 KB
Referenced Files
None
Subscribers
None
D18044.id43417.diff
View Options
diff --git a/resources/celerity/map.php b/resources/celerity/map.php
--- a/resources/celerity/map.php
+++ b/resources/celerity/map.php
@@ -13,7 +13,7 @@
'core.pkg.js' => '1475bd91',
'darkconsole.pkg.js' => '1f9a31bc',
'differential.pkg.css' => '9ebe4f44',
- 'differential.pkg.js' => '78b8497f',
+ 'differential.pkg.js' => '40f4acb3',
'diffusion.pkg.css' => 'b93d9b8c',
'diffusion.pkg.js' => '84c8f8fd',
'favicon.ico' => '30672e08',
@@ -392,7 +392,7 @@
'rsrc/js/application/dashboard/behavior-dashboard-query-panel-select.js' => '453c5375',
'rsrc/js/application/dashboard/behavior-dashboard-tab-panel.js' => 'd4eecc63',
'rsrc/js/application/diff/DiffChangeset.js' => '3359ad02',
- 'rsrc/js/application/diff/DiffChangesetList.js' => '675f1ca3',
+ 'rsrc/js/application/diff/DiffChangesetList.js' => 'b42eb5ff',
'rsrc/js/application/diff/DiffInline.js' => '45d37835',
'rsrc/js/application/diff/behavior-preview-link.js' => '051c7832',
'rsrc/js/application/differential/behavior-comment-preview.js' => '51c5ad07',
@@ -778,7 +778,7 @@
'phabricator-darkmessage' => 'c48cccdd',
'phabricator-dashboard-css' => 'fe5b1869',
'phabricator-diff-changeset' => '3359ad02',
- 'phabricator-diff-changeset-list' => '675f1ca3',
+ 'phabricator-diff-changeset-list' => 'b42eb5ff',
'phabricator-diff-inline' => '45d37835',
'phabricator-drag-and-drop-file-upload' => '58dea2fa',
'phabricator-draggable-list' => 'bea6e7f4',
@@ -1412,9 +1412,6 @@
'javelin-workflow',
'javelin-dom',
),
- '675f1ca3' => array(
- 'javelin-install',
- ),
'680ea2c8' => array(
'javelin-install',
'javelin-dom',
@@ -1822,6 +1819,9 @@
'b3e7d692' => array(
'javelin-install',
),
+ 'b42eb5ff' => array(
+ 'javelin-install',
+ ),
'b59e1e96' => array(
'javelin-behavior',
'javelin-stratcom',
diff --git a/webroot/rsrc/js/application/diff/DiffChangesetList.js b/webroot/rsrc/js/application/diff/DiffChangesetList.js
--- a/webroot/rsrc/js/application/diff/DiffChangesetList.js
+++ b/webroot/rsrc/js/application/diff/DiffChangesetList.js
@@ -68,7 +68,7 @@
var onrangedown = JX.bind(this, this._ifawake, this._onrangedown);
JX.Stratcom.listen(
- ['touchstart', 'mousedown'],
+ 'mousedown',
['differential-changeset', 'tag:th'],
onrangedown);
@@ -78,15 +78,9 @@
['differential-changeset', 'tag:th'],
onrangemove);
- var onrangetouchmove = JX.bind(this, this._ifawake, this._onrangetouchmove);
- JX.Stratcom.listen(
- 'touchmove',
- null,
- onrangetouchmove);
-
var onrangeup = JX.bind(this, this._ifawake, this._onrangeup);
JX.Stratcom.listen(
- ['touchend', 'mouseup'],
+ 'mouseup',
null,
onrangeup);
},
@@ -1147,8 +1141,8 @@
},
_onrangedown: function(e) {
- // NOTE: We're allowing touch events through, including "touchstart". We
- // need to kill the "touchstart" event so the page doesn't scroll.
+ // NOTE: We're allowing "mousedown" from a touch event through so users
+ // can leave inlines on a single line.
if (e.isRightButton()) {
return;
}
@@ -1238,31 +1232,6 @@
this._setHoverRange(this._rangeOrigin, this._rangeTarget);
},
- _onrangetouchmove: function(e) {
- if (!this._rangeActive) {
- return;
- }
-
- // NOTE: The target of a "touchmove" event is bogus. Use dark magic to
- // identify the actual target. Some day, this might move into the core
- // libraries. If this doesn't work, just bail.
-
- var target;
- try {
- var raw_event = e.getRawEvent();
- var touch = raw_event.touches[0];
- target = document.elementFromPoint(touch.clientX, touch.clientY);
- } catch (ex) {
- return;
- }
-
- if (!JX.DOM.isType(target, 'th')) {
- return;
- }
-
- this._updateRange(target, false);
- },
-
_onrangeup: function(e) {
if (!this._rangeActive) {
return;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Mar 7, 1:39 AM (2 w, 3 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7312994
Default Alt Text
D18044.id43417.diff (4 KB)
Attached To
Mode
D18044: Remove the ability to leave multi-line inline comments on touchscreen devices
Attached
Detach File
Event Timeline
Log In to Comment