Closed dartpast closed 7 years ago
Hi @dartpast , thanks for spotting the bug! Are you eager to submit your solution as a PR, or do you prefer that I do it? Cheers, Pascal
@MeTaNoV You can include it to your next release :)
@dartpast should be fixed by release 1.2.7? Can you confirm and re-open if not?
Swipeable-pages will not start the tracking when the left position > 0, due to incorrect track.x value in _onTrack function. The x-value have to be relative to the elements position otherwise the edgeSwipeSensitivity-check will not accept the value.
With a window width of 1000px the track.x value will be 500 or greater, and the this.offsetWidth value 500 making
(track.x - track.dx) > this.offsetWidth - this.edgeSwipeSensitivity
true most of the times.Adding the line:
track.x = track.x - this.getBoundingClientRect().left;
aftervar track = event.detail;
in the _onTrack function made the trick for me.