# How to pan only with left mouse button in flutter interactive viewer?

**URL:** <https://devforum.zoom.us/t/how-to-pan-only-with-left-mouse-button-in-flutter-interactive-viewer/67743>\
**Category:** Meetings\
**Created:** [April 19, 2022, 11:15am UTC](https://devforum.zoom.us/t/how-to-pan-only-with-left-mouse-button-in-flutter-interactive-viewer/67743 "2022-04-19T11:15:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gulamabbas02m](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gulamabbas02m/32/36998_2.png) [@gulamabbas02m](https://devforum.zoom.us/u/gulamabbas02m)\
**Post date:** [April 19, 2022, 11:15am UTC](https://devforum.zoom.us/t/how-to-pan-only-with-left-mouse-button-in-flutter-interactive-viewer/67743/1 "2022-04-19T11:15:10Z")

</div>

I have an interactive viewer which encapsulates an image. I want the user to only be able to pan with left mouse button and open a menu on right.cl[i](https://deepmaterialpt.com/)ck. Currently the menu opens with right click and image also get panned with right click. Is there a way to stop panning with right click in interactive viewer?

```auto
Widget build(BuildContext context) {
    return Center(
      child: InteractiveViewer(
        transformationController: _controller,
        boundaryMargin: EdgeInsets.all(10000),
        clipBehavior: Clip.none,
        minScale: 0.0001,
        maxScale: 10,
        constrained: true,
        child: Stack(
          children: [
            Align(
              alignment: AlignmentDirectional(0, 0),
              child: Image(
                image: AssetImage(widget.imagePat),
                filterQuality: FilterQuality.medium,
                isAntiAlias: true,
              ),
            ),
            Align(
              alignment: AlignmentDirectional(0.11, 0.09),
              child: SizedBox(
                width: 40,
                height: 40,
                child: TextButton(
                  style: ElevatedButton.styleFrom(
                      primary: Color.fromARGB(24, 0, 0, 0)),
                  onPressed: () => {},
                  child: Container(),
                ),
              ),
            ),
          ],
        ),
      ),
    );
  }

```

---

<div class="post-metadata">

**Author:** ![donte.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/donte.zoom/32/24412_2.png) [@donte.zoom](https://devforum.zoom.us/u/donte.zoom)\
**Post date:** [May 18, 2022, 4:36am UTC](https://devforum.zoom.us/t/how-to-pan-only-with-left-mouse-button-in-flutter-interactive-viewer/67743/2 "2022-05-18T04:36:00Z")

</div>

Hi, @gulamabbas02m,

Welcome to the Developer Forum. At this time, support for Flutter is not available as we do not have any official SDK for it.
