Skip to content

Svelte 5: event hanlding with ontouchstart #14788

@zhihengGet

Description

@zhihengGet

Describe the bug

i faced below problems

  1. ontouchstart does not work insidue <script>
  2. parent.addEventlistner called before child. ontouchstart unless i also attach addEventlistner to child

not sure if it is because my misunderstanding on how bubbling works , i thought child should be called first no matter it is ontouchstart or addEvent ....

Reproduction

svelte code

Logs

-

System Info

Severity

annoyance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions