Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

browserTrigger doesn't support TouchEvent. #4997

Closed
@munet9

Description

@munet9

browserTrigger in ngScenario is very useful to triggering UIEvent and used in many spec files.
But browserTrigger(element, 'touchstart'); is triggering MouseEvent instead of TouchEvent.

This causes ngTouch tested uncorrectly.
TouchEvents has no clientX, clientY, But MouseEvent has these. So ngClick(ngTouch) with current browserTrigger will pass successfully, but with real touch-enabled device won't work.

I know Chrome, Firefox needs special flags in desktop.
Is it difficult to support TouchEvent in current browsers?

I think this fixes some issues(#2548, #3556, #4001, #4428, #4583).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions