@interactjs/auto-scroll
Advanced tools
Comparing version 1.8.0-alpha.0 to 1.8.0-alpha.1
11
index.js
@@ -31,3 +31,3 @@ import * as domUtils from "../utils/domUtils.js"; | ||
interaction: null, | ||
i: null, | ||
i: 0, | ||
// the handle returned by window.setInterval | ||
@@ -70,3 +70,4 @@ x: 0, | ||
} = interaction; | ||
const options = interactable.options[autoScroll.interaction.prepared.name].autoScroll; | ||
const actionName = interaction.prepared.name; | ||
const options = interactable.options[actionName].autoScroll; | ||
const container = getContainer(options.container, interactable, element); | ||
@@ -148,3 +149,4 @@ const now = autoScroll.now(); // change in time in seconds | ||
} = interaction; | ||
const options = interactable.options[interaction.prepared.name].autoScroll; | ||
const actionName = interaction.prepared.name; | ||
const options = interactable.options[actionName].autoScroll; | ||
const container = getContainer(options.container, interactable, element); | ||
@@ -223,3 +225,3 @@ | ||
} | ||
export default { | ||
const autoScrollPlugin = { | ||
id: 'auto-scroll', | ||
@@ -247,2 +249,3 @@ install, | ||
}; | ||
export default autoScrollPlugin; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@interactjs/auto-scroll", | ||
"version": "1.8.0-alpha.0", | ||
"version": "1.8.0-alpha.1", | ||
"license": "MIT", | ||
"peerDependencies": { | ||
"@interactjs/utils": "1.8.0-alpha.0" | ||
"@interactjs/utils": "1.8.0-alpha.1" | ||
}, | ||
@@ -8,0 +8,0 @@ "publishConfig": { |
Sorry, the diff of this file is not supported yet
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
23768
5
214