mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-08-03 09:10:13 +08:00
@@ -235,7 +235,6 @@ class _ViewerState extends State<Viewer> with SingleTickerProviderStateMixin {
|
|||||||
void _handleDoubleTap() {
|
void _handleDoubleTap() {
|
||||||
if (!mounted) return;
|
if (!mounted) return;
|
||||||
if (_animationController.isAnimating) return;
|
if (_animationController.isAnimating) return;
|
||||||
_stopFling();
|
|
||||||
_scaleFrom = _scale;
|
_scaleFrom = _scale;
|
||||||
_positionFrom = _position;
|
_positionFrom = _position;
|
||||||
|
|
||||||
@@ -267,8 +266,6 @@ class _ViewerState extends State<Viewer> with SingleTickerProviderStateMixin {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void _onScaleStart(ScaleStartDetails details) {
|
void _onScaleStart(ScaleStartDetails details) {
|
||||||
_stopFling();
|
|
||||||
|
|
||||||
if (_animationController.isAnimating) {
|
if (_animationController.isAnimating) {
|
||||||
_animationController.stop();
|
_animationController.stop();
|
||||||
}
|
}
|
||||||
@@ -483,6 +480,7 @@ class _ViewerState extends State<Viewer> with SingleTickerProviderStateMixin {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void _onPointerDown(PointerDownEvent event) {
|
void _onPointerDown(PointerDownEvent event) {
|
||||||
|
_stopFling();
|
||||||
_scalePos = event.position;
|
_scalePos = event.position;
|
||||||
_doubleTapGestureRecognizer
|
_doubleTapGestureRecognizer
|
||||||
..onDoubleTapDown = _onDoubleTapDown
|
..onDoubleTapDown = _onDoubleTapDown
|
||||||
|
|||||||
Reference in New Issue
Block a user