Skip to content

Drag drop compatibility#579

Merged
AlbertShown merged 1 commit intowebui-dev:mainfrom
konakona418-forked:drag-drop-compatibility
Apr 8, 2025
Merged

Drag drop compatibility#579
AlbertShown merged 1 commit intowebui-dev:mainfrom
konakona418-forked:drag-drop-compatibility

Conversation

@konakona418
Copy link
Contributor

Used a CSS custom property to improve compatibility with -webkit-app-region.

This patch introduces a new CSS property --webui-app-region, which can be used by setting --webui-app-region: drag; in the element's style. On platforms that support -webkit-app-region, the original behavior remains unaffected.

This approach helps ensure broader compatibility across environments while preserving the intended drag behavior.

For more context, please refer to the discussion in PR #577.

I've done some basic testing, but feel free to double-check if everything works as expected. Also, please verify that the TypeScript code is properly transpiled. Thanks!

@AlbertShown AlbertShown merged commit e79b74a into webui-dev:main Apr 8, 2025
24 checks passed
@konakona418
Copy link
Contributor Author

Thanks!

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 this pull request may close these issues.

2 participants