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

    # Pan with mouse.
    c.events.touch(type='pinch', pos=(0, 0), scale=1, last_scale=1)
    c.events.touch(type='pinch', pos=(0, 0), scale=2, last_scale=1)
    assert pz.zoom[0] >= 2
    c.events.touch(type='end')

    c.events.touch(type='touch', pos=(0.1, 0), last_pos=(0, 0))
    assert 1 >= pz.pan[0]
dataset/ETHPy150Open kwikteam/phy/phy/plot/tests/test_panzoom.py/test_panzoom_touch/swapped operands of `>=`