@polymer/iron-overlay-behavior
Advanced tools
Comparing version 3.0.0-pre.15 to 3.0.0-pre.16
@@ -17,3 +17,3 @@ /** | ||
*/ | ||
var lastTouchPosition = { pageX: 0, pageY: 0 }; | ||
var lastTouchPosition = {pageX: 0, pageY: 0}; | ||
/** | ||
@@ -89,3 +89,3 @@ * Used to avoid computing event.path and filter scrollable nodes (better perf). | ||
scrollLocked = !!lockingElement && lockingElement !== element && | ||
!_composedTreeContains(lockingElement, element); | ||
!_composedTreeContains(lockingElement, element); | ||
@@ -123,3 +123,3 @@ if (scrollLocked) { | ||
currentLockingElement = | ||
_lockingElements[_lockingElements.length - 1]; | ||
_lockingElements[_lockingElements.length - 1]; | ||
@@ -148,3 +148,3 @@ _lockedElementCache = []; | ||
currentLockingElement = | ||
_lockingElements[_lockingElements.length - 1]; | ||
_lockingElements[_lockingElements.length - 1]; | ||
@@ -190,5 +190,5 @@ _lockedElementCache = []; | ||
for (contentIndex = 0; contentIndex < contentElements.length; | ||
++contentIndex) { | ||
++contentIndex) { | ||
distributedNodes = | ||
dom(contentElements[contentIndex]).getDistributedNodes(); | ||
dom(contentElements[contentIndex]).getDistributedNodes(); | ||
@@ -230,3 +230,3 @@ for (nodeIndex = 0; nodeIndex < distributedNodes.length; ++nodeIndex) { | ||
_boundScrollHandler = | ||
_boundScrollHandler || _scrollInteractionHandler.bind(undefined); | ||
_boundScrollHandler || _scrollInteractionHandler.bind(undefined); | ||
for (var i = 0, l = scrollEvents.length; i < l; i++) { | ||
@@ -236,5 +236,5 @@ // NOTE: browsers that don't support objects as third arg will | ||
document.addEventListener( | ||
scrollEvents[i], | ||
_boundScrollHandler, | ||
{ capture: true, passive: false }); | ||
scrollEvents[i], | ||
_boundScrollHandler, | ||
{capture: true, passive: false}); | ||
} | ||
@@ -248,5 +248,5 @@ } | ||
document.removeEventListener( | ||
scrollEvents[i], | ||
_boundScrollHandler, | ||
{ capture: true, passive: false }); | ||
scrollEvents[i], | ||
_boundScrollHandler, | ||
{capture: true, passive: false}); | ||
} | ||
@@ -285,3 +285,3 @@ } | ||
return !_getScrollingNode( | ||
lastScrollableNodes, info.deltaX, info.deltaY); | ||
lastScrollableNodes, info.deltaX, info.deltaY); | ||
} | ||
@@ -341,9 +341,9 @@ | ||
canScroll = deltaY < 0 ? | ||
node.scrollTop > 0 : | ||
node.scrollTop < node.scrollHeight - node.clientHeight; | ||
node.scrollTop > 0 : | ||
node.scrollTop < node.scrollHeight - node.clientHeight; | ||
} else { | ||
// delta < 0 is scroll left, delta > 0 is scroll right. | ||
canScroll = deltaX < 0 ? | ||
node.scrollLeft > 0 : | ||
node.scrollLeft < node.scrollWidth - node.clientWidth; | ||
node.scrollLeft > 0 : | ||
node.scrollLeft < node.scrollWidth - node.clientWidth; | ||
} | ||
@@ -366,3 +366,3 @@ if (canScroll) { | ||
export function _getScrollInfo(event) { | ||
var info = { deltaX: event.deltaX, deltaY: event.deltaY }; | ||
var info = {deltaX: event.deltaX, deltaY: event.deltaY}; | ||
// Already available. | ||
@@ -369,0 +369,0 @@ if ('deltaX' in event) { |
@@ -19,6 +19,6 @@ { | ||
"webmat": "^0.2.0", | ||
"@polymer/iron-component-page": "^3.0.0-pre.15", | ||
"@polymer/iron-demo-helpers": "^3.0.0-pre.15", | ||
"@polymer/iron-flex-layout": "^3.0.0-pre.15", | ||
"@polymer/iron-test-helpers": "^3.0.0-pre.15", | ||
"@polymer/iron-component-page": "^3.0.0-pre.16", | ||
"@polymer/iron-demo-helpers": "^3.0.0-pre.16", | ||
"@polymer/iron-flex-layout": "^3.0.0-pre.16", | ||
"@polymer/iron-test-helpers": "^3.0.0-pre.16", | ||
"wct-browser-legacy": "^0.0.1-pre.11", | ||
@@ -31,3 +31,3 @@ "@webcomponents/webcomponentsjs": "^2.0.0-beta.2" | ||
}, | ||
"version": "3.0.0-pre.15", | ||
"version": "3.0.0-pre.16", | ||
"resolutions": { | ||
@@ -43,7 +43,7 @@ "inherits": "2.0.3", | ||
"dependencies": { | ||
"@polymer/iron-a11y-keys-behavior": "^3.0.0-pre.15", | ||
"@polymer/iron-fit-behavior": "^3.0.0-pre.15", | ||
"@polymer/iron-resizable-behavior": "^3.0.0-pre.15", | ||
"@polymer/iron-a11y-keys-behavior": "^3.0.0-pre.16", | ||
"@polymer/iron-fit-behavior": "^3.0.0-pre.16", | ||
"@polymer/iron-resizable-behavior": "^3.0.0-pre.16", | ||
"@polymer/polymer": "^3.0.0-pre.13" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
197612