Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,9 @@ export default {
const boundsSize = isVertical ? bounds.height : bounds.width
let start = -(isVertical ? bounds.top : bounds.left)
let size = isVertical ? window.innerHeight : window.innerWidth
if (start < 0) {
let originStart = isVertical ? bounds.top : bounds.left;
// Fix start value when the el is scrolling from under the viewport to the middle of the viewport
if (start < 0 && !(originStart > 0 && originStart < size)) {
size += start
start = 0
}
Expand Down