Skip to content

Multi-Touch panic for a simple case #42320

@yezhizhen

Description

@yezhizhen

Describe the bug:

Panic with 0 duration

def test_interspersed_touch_moves(session, test_actions_pointer_page):
    pointerArea = session.find.css("#pointerArea", all=False)
    
    # Two fingers
    touch_chain_1 = session.actions.sequence(
        "pointer",
        "touch_pointer_1",
        {"pointerType": "touch"})
    touch_chain_2 = session.actions.sequence(
        "pointer",
        "touch_pointer_2",
        {"pointerType": "touch"})

    touch_chain_1 \
        .pointer_move(0, 0, origin=pointerArea) \
        .pointer_down() \
        .pointer_move(10, 10, origin=pointerArea, duration=0) \
        .pointer_up()

    touch_chain_2 \
        .pointer_move(1, 1, origin=pointerArea) \
        .pointer_down() \
        .pointer_move(20, 20, origin=pointerArea, duration=0) \
        .pointer_up()

    # Perform both action sequences in parallel.
    session.actions.perform([touch_chain_1.dict, touch_chain_2.dict])

No Panic with 200ms duration

Same test case as above. Just change duration from 0 to 200.


The difference is, the first test has one touchmove for each pointer. The second test has two touchmove for each pointer.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions