Skip to content

svelte 5: gotpointercapture and lostpointercapture not paresed correctly #11789

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
FoHoOV opened this issue May 26, 2024 · 0 comments · Fixed by #11790
Closed

svelte 5: gotpointercapture and lostpointercapture not paresed correctly #11789

FoHoOV opened this issue May 26, 2024 · 0 comments · Fixed by #11790

Comments

@FoHoOV
Copy link
Contributor

FoHoOV commented May 26, 2024

Describe the bug

See this REPL JS output.

It currently outputs:

        // ...other stuff
	$.event(
		"gotpointer",
		div,
		() => {}, // something
		true
	);

	$.event(
		"lostpointer",
		div,
		() => {}, // something
		true
	);

whilst it should be outputing this:

        // ...other stuff
	$.event(
		"gotpointercapture",
		div,
		() => {}, // something
		false
	);

	$.event(
		"lostpointercapture",
		div,
		() => {}, // something
		false
	);

which breaks things like this REPL.

Reproduction

1- go to this REPL
2- click on the inner div and move you mouse
3- expected to see "got pointer in parent" and "lost pointer parent" get logged

Logs

No response

System Info

svelte 5-next.141

Severity

annoyance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant