rocksdanister / lively

Free and open-source software that allows users to set animated desktop wallpapers and screensavers powered by WinUI 3.
https://rocksdanister.com/lively
GNU General Public License v3.0
15k stars 1.06k forks source link

need html5 drag & drop API to be supported #1548

Open Hincex opened 1 year ago

Hincex commented 1 year ago

Describe the bug I'm using html5 drag & drop API to develop a web wallpaper,but when applying to the desktop,they don't work.

Expected behavior Using html5 drag & drop API as well as it works in browser.

rocksdanister commented 1 year ago

Can you not use FolderDropDown? it has a filedialog: https://github.com/rocksdanister/lively/wiki/Web-Guide-IV-:-Interaction#folder-dropdown

Hincex commented 1 year ago

Can you not use FolderDropDown? it has a filedialog: https://github.com/rocksdanister/lively/wiki/Web-Guide-IV-:-Interaction#folder-dropdown

Huh?This component doesn't correspond with my needs,I means i develop a card component by web tech which could be dragged or dropped in browser,but could not act as same in the lively wallpaper.

rocksdanister commented 1 year ago

Provide an example project with the problem.

Hincex commented 1 year ago

Provide an example project with the problem.

https://gitee.com/vincehe/offwork.git download it,and pnpm build,directly open the index.html,you could drag the component to sort them,but couldn't in lively wallpaper.

RutsuKun commented 1 year ago

any update?

rocksdanister commented 1 year ago

When set as wallpaper the browser is not foreground, supporting the html5 drag & drop API directly would be difficult from my understanding.

Mouse inputs are forwarded from Lively -> Browser.

It could be part of a custom Lively API.