@linear_non/stellar-kit 2.1.3 → 2.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +2 -2
- package/package.json +1 -1
- package/plugins/Observer.js +0 -2
package/index.js
CHANGED
|
@@ -3,9 +3,9 @@ import { Mouse, Resize, Raf, Scroll } from "./events"
|
|
|
3
3
|
import kitStore from "./kitStore"
|
|
4
4
|
import { sniffer } from "./utils"
|
|
5
5
|
|
|
6
|
-
export function setupKit({ isSmooth = sniffer.isDesktop } = {}) {
|
|
6
|
+
export function setupKit({ isSmooth = sniffer.isDesktop, isLocked = false } = {}) {
|
|
7
7
|
kitStore.flags.isSmooth = isSmooth
|
|
8
|
-
kitStore.flags.isLocked =
|
|
8
|
+
kitStore.flags.isLocked = isLocked
|
|
9
9
|
|
|
10
10
|
kitStore.resize = new Resize()
|
|
11
11
|
kitStore.raf = new Raf()
|
package/package.json
CHANGED
package/plugins/Observer.js
CHANGED
|
@@ -7,7 +7,6 @@ const DEFAULTS = {
|
|
|
7
7
|
start: "top bottom",
|
|
8
8
|
end: "bottom top",
|
|
9
9
|
scrub: false,
|
|
10
|
-
once: true,
|
|
11
10
|
markers: false,
|
|
12
11
|
}
|
|
13
12
|
|
|
@@ -22,7 +21,6 @@ export default class Observer extends Emitter {
|
|
|
22
21
|
start: this.opts.start,
|
|
23
22
|
end: this.opts.end,
|
|
24
23
|
scrub: this.opts.scrub,
|
|
25
|
-
once: this.opts.once,
|
|
26
24
|
markers: this.opts.markers,
|
|
27
25
|
onEnter: self => this.emit("enter", self, this),
|
|
28
26
|
onLeave: self => this.emit("leave", self, this),
|