Skip to content

Commit 9c76f97

Browse files
committed
chore(release): 1.2.5
1 parent 6bf7a62 commit 9c76f97

3 files changed

Lines changed: 21 additions & 21 deletions

File tree

dist/float-sidebar.js

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* @version v1.2.4
44
* @link https://github.com/vursen/FloatSidebar.js
55
* @author Sergey Vinogradov
6-
* @license The MIT License (MIT)
6+
* @license MIT
77
*/
88
(function webpackUniversalModuleDefinition(root, factory) {
99
if(typeof exports === 'object' && typeof module === 'object')
@@ -163,22 +163,22 @@ function fsm_transitions_defineProperty(obj, key, value) { if (key in obj) { Obj
163163
/* harmony default export */ var fsm_transitions = (fsm_transitions_states$START$states$ = {}, fsm_transitions_defineProperty(fsm_transitions_states$START$states$, START, [{
164164
to: FINISH,
165165
when: function when(d) {
166-
return [d.isSideInnerFitsPath === true, d.viewportTop + d.sideInnerHeight > d.finishPoint];
166+
return [d.isSideInnerWithinPath === true, d.viewportTop + d.sideInnerHeight + d.bottomSpacing > d.finishPoint, d.viewportBottom > d.finishPoint];
167167
}
168168
}, {
169169
to: BOTTOM_FIXED,
170170
when: function when(d) {
171-
return [d.isSideInnerFitsPath === true, d.isSideInnerFitsViewport === false, d.viewportBottom > d.sideInnerBottom + d.bottomSpacing];
171+
return [d.isSideInnerWithinPath === true, d.isSideInnerWithinViewport === false, d.viewportBottom > d.sideInnerBottom + d.bottomSpacing];
172172
}
173173
}, {
174174
to: TOP_FIXED,
175175
when: function when(d) {
176-
return [d.isSideInnerFitsPath === true, d.isSideInnerFitsViewport === true, d.viewportTop > d.startPoint - d.topSpacing];
176+
return [d.isSideInnerWithinPath === true, d.isSideInnerWithinViewport === true, d.viewportTop > d.startPoint - d.topSpacing];
177177
}
178178
}]), fsm_transitions_defineProperty(fsm_transitions_states$START$states$, TOP_FIXED, [{
179179
to: START,
180180
when: function when(d) {
181-
return [d.isSideInnerFitsPath === false];
181+
return [d.isSideInnerWithinPath === false];
182182
}
183183
}, {
184184
to: START,
@@ -193,12 +193,12 @@ function fsm_transitions_defineProperty(obj, key, value) { if (key in obj) { Obj
193193
}, {
194194
to: UNFIXED,
195195
when: function when(d) {
196-
return [d.scrollDirection === 'down', d.isSideInnerFitsViewport === false];
196+
return [d.scrollDirection === 'down', d.isSideInnerWithinViewport === false];
197197
}
198198
}]), fsm_transitions_defineProperty(fsm_transitions_states$START$states$, UNFIXED, [{
199199
to: START,
200200
when: function when(d) {
201-
return [d.isSideInnerFitsPath === false];
201+
return [d.isSideInnerWithinPath === false];
202202
}
203203
}, {
204204
to: START,
@@ -208,7 +208,7 @@ function fsm_transitions_defineProperty(obj, key, value) { if (key in obj) { Obj
208208
}, {
209209
to: FINISH,
210210
when: function when(d) {
211-
return [d.viewportTop + d.sideInnerHeight > d.finishPoint];
211+
return [d.viewportBottom > d.finishPoint];
212212
}
213213
}, {
214214
to: TOP_FIXED,
@@ -218,22 +218,22 @@ function fsm_transitions_defineProperty(obj, key, value) { if (key in obj) { Obj
218218
}, {
219219
to: TOP_FIXED,
220220
when: function when(d) {
221-
return [d.isSideInnerFitsViewport === true, d.viewportBottom >= d.sideInnerBottom + d.bottomSpacing];
221+
return [d.isSideInnerWithinViewport === true, d.viewportBottom >= d.sideInnerBottom + d.bottomSpacing];
222222
}
223223
}, {
224224
to: BOTTOM_FIXED,
225225
when: function when(d) {
226-
return [d.isSideInnerFitsViewport === false, d.viewportBottom > d.sideInnerBottom + d.bottomSpacing];
226+
return [d.isSideInnerWithinViewport === false, d.viewportBottom > d.sideInnerBottom + d.bottomSpacing];
227227
}
228228
}]), fsm_transitions_defineProperty(fsm_transitions_states$START$states$, BOTTOM_FIXED, [{
229229
to: START,
230230
when: function when(d) {
231-
return [d.isSideInnerFitsPath === false];
231+
return [d.isSideInnerWithinPath === false];
232232
}
233233
}, {
234234
to: START,
235235
when: function when(d) {
236-
return [d.isSideInnerFitsPath === true, d.sideInnerTop <= d.startPoint - d.topSpacing];
236+
return [d.isSideInnerWithinPath === true, d.sideInnerTop <= d.startPoint - d.topSpacing];
237237
}
238238
}, {
239239
to: UNFIXED,
@@ -243,7 +243,7 @@ function fsm_transitions_defineProperty(obj, key, value) { if (key in obj) { Obj
243243
}, {
244244
to: TOP_FIXED,
245245
when: function when(d) {
246-
return [d.isSideInnerFitsViewport === true];
246+
return [d.isSideInnerWithinViewport === true];
247247
}
248248
}, {
249249
to: FINISH,
@@ -253,7 +253,7 @@ function fsm_transitions_defineProperty(obj, key, value) { if (key in obj) { Obj
253253
}]), fsm_transitions_defineProperty(fsm_transitions_states$START$states$, FINISH, [{
254254
to: START,
255255
when: function when(d) {
256-
return [d.isSideInnerFitsPath === false];
256+
return [d.isSideInnerWithinPath === false];
257257
}
258258
}, {
259259
to: START,
@@ -367,8 +367,8 @@ function createDimensionObserver(callback, _ref) {
367367

368368
var pathHeight = finishPoint - startPoint;
369369

370-
var isSideInnerFitsViewport = dim$sideInner.height + topSpacing + bottomSpacing < dim$viewport.height;
371-
var isSideInnerFitsPath = dim$sideInner.height < pathHeight;
370+
var isSideInnerWithinViewport = dim$sideInner.height + topSpacing + bottomSpacing < dim$viewport.height;
371+
var isSideInnerWithinPath = dim$sideInner.height < pathHeight;
372372

373373
var sideOuterHeight = Math.max(dim$sideInner.height, pathHeight);
374374

@@ -378,8 +378,8 @@ function createDimensionObserver(callback, _ref) {
378378
topSpacing: topSpacing,
379379
bottomSpacing: bottomSpacing,
380380
scrollDirection: scrollDirection,
381-
isSideInnerFitsPath: isSideInnerFitsPath,
382-
isSideInnerFitsViewport: isSideInnerFitsViewport,
381+
isSideInnerWithinPath: isSideInnerWithinPath,
382+
isSideInnerWithinViewport: isSideInnerWithinViewport,
383383

384384
sideOuterHeight: sideOuterHeight,
385385

dist/float-sidebar.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"url": "https://github.com/vursen/FloatSidebar.js/issues"
1919
},
2020
"homepage": "https://github.com/vursen/FloatSidebar.js",
21-
"version": "1.2.4",
21+
"version": "1.2.5",
2222
"main": "./dist/float-sidebar.min.js",
2323
"module": "./dist/float-sidebar.js",
2424
"devDependencies": {

0 commit comments

Comments
 (0)