-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Closed
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listf: gesturesflutter/packages/flutter/gestures repository.flutter/packages/flutter/gestures repository.found in release: 1.21Found to occur in 1.21Found to occur in 1.21frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onwaiting for customer responseThe Flutter team cannot make further progress on this issue until the original reporter respondsThe Flutter team cannot make further progress on this issue until the original reporter responds
Description
Steps to reproduce
- Run the code given below.
- Attempt many different scale gestures.
- Eventually, one may get stuck as a pan. You'll have two fingers on the screen, but no amount of pinching them together/apart will cause a zoom. Lifting one or more fingers will reset it.
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Demo',
home: Scaffold(
appBar: AppBar(title: Text('Demo')),
body: Center(
child: ClipRect(
child: InteractiveViewer(
child: Container(
color: Colors.brown,
child: Image.network(
'https://1001freedownloads.s3.amazonaws.com/vector/thumb/116435/go_board_09x09.png',
),
),
),
),
),
),
);
}
}
Cause
_onScaleUpdate always receives a scale of 1.0 during this stuck gesture. That would make me think that it's a bug with GestureDetector, but I was unable to reproduce this with a lone GestureDetector. There must be something with InteractiveViewer's widget tree or configuration that causes the bug to show up.
Moved to new issue from some discussion in #63006.
fichna, friebetill and deckerst
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listf: gesturesflutter/packages/flutter/gestures repository.flutter/packages/flutter/gestures repository.found in release: 1.21Found to occur in 1.21Found to occur in 1.21frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onwaiting for customer responseThe Flutter team cannot make further progress on this issue until the original reporter respondsThe Flutter team cannot make further progress on this issue until the original reporter responds