Page MenuHomePhabricator

D8762.id20782.diff
No OneTemporary

D8762.id20782.diff

diff --git a/resources/celerity/map.php b/resources/celerity/map.php
--- a/resources/celerity/map.php
+++ b/resources/celerity/map.php
@@ -14,7 +14,7 @@
'differential.pkg.js' => '11a5b750',
'diffusion.pkg.css' => '3783278d',
'diffusion.pkg.js' => '5b4010f4',
- 'javelin.pkg.js' => 'a10417f3',
+ 'javelin.pkg.js' => '509e3db6',
'maniphest.pkg.css' => 'f1887d71',
'maniphest.pkg.js' => '2fe8af22',
'rsrc/css/aphront/aphront-bars.css' => '231ac33c',
@@ -206,7 +206,7 @@
'rsrc/externals/javelin/lib/Request.js' => '23f9bb8d',
'rsrc/externals/javelin/lib/Resource.js' => '356de121',
'rsrc/externals/javelin/lib/URI.js' => 'd9a9b862',
- 'rsrc/externals/javelin/lib/Vector.js' => '403a3dce',
+ 'rsrc/externals/javelin/lib/Vector.js' => 'efda5fd7',
'rsrc/externals/javelin/lib/Workflow.js' => 'f28bf201',
'rsrc/externals/javelin/lib/__tests__/Cookie.js' => '5ed109e8',
'rsrc/externals/javelin/lib/__tests__/DOM.js' => 'c984504b',
@@ -656,7 +656,7 @@
'javelin-typeahead-static-source' => 'cdde23f1',
'javelin-uri' => 'd9a9b862',
'javelin-util' => '65b0b249',
- 'javelin-vector' => '403a3dce',
+ 'javelin-vector' => 'efda5fd7',
'javelin-view' => '0f764c35',
'javelin-view-html' => 'e5b406f9',
'javelin-view-interpreter' => '0c33c1a0',
@@ -1049,11 +1049,6 @@
1 => 'javelin-dom',
2 => 'phortune-credit-card-form',
),
- '403a3dce' =>
- array(
- 0 => 'javelin-install',
- 1 => 'javelin-event',
- ),
'4173dbd8' =>
array(
0 => 'multirow-row-manager',
@@ -1838,6 +1833,11 @@
2 => 'javelin-stratcom',
3 => 'javelin-util',
),
+ 'efda5fd7' =>
+ array(
+ 0 => 'javelin-install',
+ 1 => 'javelin-event',
+ ),
'efe49472' =>
array(
0 => 'javelin-install',
diff --git a/webroot/rsrc/externals/javelin/lib/Vector.js b/webroot/rsrc/externals/javelin/lib/Vector.js
--- a/webroot/rsrc/externals/javelin/lib/Vector.js
+++ b/webroot/rsrc/externals/javelin/lib/Vector.js
@@ -223,6 +223,13 @@
getPos : function(node) {
JX.Event && (node instanceof JX.Event) && (node = node.getRawEvent());
+ if (node.getBoundingClientRect) {
+ var rect = node.getBoundingClientRect();
+ return new JX.Vector(
+ rect.left + window.pageXOffset,
+ rect.top + window.pageYOffset);
+ }
+
if (('pageX' in node) || ('clientX' in node)) {
var c = JX.Vector._viewport;
return new JX.Vector(

File Metadata

Mime Type
text/plain
Expires
Fri, Dec 20, 12:09 AM (9 h, 4 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6908734
Default Alt Text
D8762.id20782.diff (2 KB)

Event Timeline