def test_panzoom_pan_mouse(qtbot, canvas_pz, panzoom):
    c = canvas_pz
    pz = panzoom

    # Pan with mouse.
    press = MouseEvent(type='mouse_press', pos=(0, 0))
    c.events.mouse_move(pos=(10., 0.), button=1,
                        last_event=press, press_event=press)
    assert 0 > pz.pan[0]
    assert pz.pan[1] == 0
    pz.pan = (0, 0)

    # Panning with a modifier should not pan.
    press = MouseEvent(type='mouse_press', pos=(0, 0))
    c.events.mouse_move(pos=(10., 0.), button=1,
                        last_event=press, press_event=press,
                        modifiers=(keys.CONTROL,))
    assert pz.pan == [0, 0]

    # qtbot.stop()
dataset/ETHPy150Open kwikteam/phy/phy/plot/tests/test_panzoom.py/test_panzoom_pan_mouse/swapped operands of `>`