This commit is contained in:
Nick Fisher
2023-04-18 14:40:06 +08:00

View File

@@ -103,7 +103,6 @@ class _FilamentGestureDetectorState extends State<FilamentGestureDetector> {
? null ? null
: (d) async { : (d) async {
_scaling = true; _scaling = true;
print("SCALE START");
if (d.pointerCount == 2) { if (d.pointerCount == 2) {
await widget.controller.zoomEnd(); await widget.controller.zoomEnd();
await widget.controller.zoomBegin(); await widget.controller.zoomBegin();
@@ -134,8 +133,6 @@ class _FilamentGestureDetectorState extends State<FilamentGestureDetector> {
onPointerSignal: !widget.enableControls onPointerSignal: !widget.enableControls
? null ? null
: (pointerSignal) async { : (pointerSignal) async {
print("ponter signal");
// scroll-wheel zoom on desktop // scroll-wheel zoom on desktop
if (pointerSignal is PointerScrollEvent) { if (pointerSignal is PointerScrollEvent) {
_scrollTimer?.cancel(); _scrollTimer?.cancel();
@@ -154,7 +151,6 @@ class _FilamentGestureDetectorState extends State<FilamentGestureDetector> {
onPointerDown: !widget.enableControls onPointerDown: !widget.enableControls
? null ? null
: (d) async { : (d) async {
print("piinterodoiwn");
if (d.buttons == kTertiaryButton || _rotating) { if (d.buttons == kTertiaryButton || _rotating) {
await widget.controller.rotateStart( await widget.controller.rotateStart(
d.localPosition.dx, d.localPosition.dy); d.localPosition.dx, d.localPosition.dy);
@@ -166,7 +162,6 @@ class _FilamentGestureDetectorState extends State<FilamentGestureDetector> {
onPointerMove: !widget.enableControls onPointerMove: !widget.enableControls
? null ? null
: (d) async { : (d) async {
print("pointermove");
if (d.buttons == kTertiaryButton || _rotating) { if (d.buttons == kTertiaryButton || _rotating) {
await widget.controller.rotateUpdate( await widget.controller.rotateUpdate(
d.localPosition.dx, d.localPosition.dy); d.localPosition.dx, d.localPosition.dy);
@@ -178,7 +173,6 @@ class _FilamentGestureDetectorState extends State<FilamentGestureDetector> {
onPointerUp: !widget.enableControls onPointerUp: !widget.enableControls
? null ? null
: (d) async { : (d) async {
print("pointerup");
if (d.buttons == kTertiaryButton || _rotating) { if (d.buttons == kTertiaryButton || _rotating) {
await widget.controller.rotateEnd(); await widget.controller.rotateEnd();
} else { } else {