-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
[bug] Partial HTML Drag is not work #3277
Comments
Huh. That's really interesting. The app that I'm working on uses react and Maybe try compiling my app locally to see if it's something to do with your webview provider? Go into the If you drag any of the list items, you should see a green outline around the list itself, and if you drag the item off of the list, the outline should go and the list should collapse to fill the space that the item took. If that all works fine for you, then either react-beautiful-dnd lied to me about using the html drag-and-drop api under the hood, or something more weird is going on in configuration somewhere for you. Either way, please update us when you have some answers |
@JamesYeoman This is a example. // Here is the code that does not work.
<draggable> // This is the component of vuedraggable.
// Here is the same code working.
</draggable> Also I tried to open the previous code using |
@LuXts repeatedly loading? Really odd... maybe it's your arch installation that's the cause here. Maybe try running an ubuntu VM and running both the projects in that VM? |
This because of a conflict with
Currently we are not aware of a fix to this conflict, so I am gonna close this issue. |
@amrbashir quote from the initial issue:
The weird/bad thing is that some drag events work but not all. |
sorry, didn't see they tried "fileDropEnabled":false but anyhow, I doubt we can do anything here so I will keep the issue closed but please try running your example in epiphany browser and see if the events work correctly; if it does, let me know and I will reopen the issue. |
@JamesYeoman the main window is ok, but when you open a new window, then the drag is disable. |
I have this problem as well, using It says in the documentation that |
I ran into the same issue when I used react-dnd on my Mac |
Same here, onDrop events weren't firing. Seems like a real bug to me? Maybe this issue should be re-opened. Environment Packages App App directory structure |
---Changelog--- [Tauri] - Created create_or_load_data to initialize the directory and load tauri - Created import_book to handle the importing of new books - Created get_hash to handle Vec<u8> to CRC32 - Created get_books to load all information about imported books - Added data folder in src-tauri to gitignore - Set fileDropEnabled in tauri.conf to enable html drag and drop - tauri-apps/tauri#3277 (comment) - Created allowlist in tauri.conf to accept current folder - Enabled all api features in AllowListConfig - Created get_book_by_hash function with returns the book data [Core] - Added window.__TAURI__ to global typescript definitions - Added Drag and Drop support to Home.tsx, which imports books with tauri - Drag and Drop Generated Book Cover which is sent to tauri - Added DropZone to Home.tsx - Made defaults.css load from absolute path - Created /reader/:bookHash route - Made reader load bytes from bookhash, otherwise, falls back to placeholder book - Fixed crash when clicking TOC: Found in f914e547 [Webpack] - Added publicPath: '/' to fix react router bug not navigating to nested components [Dependencies] Added "react-dropzone" for drag and drop Added "@tauri-apps/api" for calling Tauri from front end Added tauri = { version = "1.2.2", features = ["api-all"] } Added crc32fast = "1.3.2" Updated "react-router-dom": "^6.4.0", -> ^6.6.1
---Changelog--- [Tauri] - Created create_or_load_data to initialize the directory and load tauri - Created import_book to handle the importing of new books - Created get_hash to handle Vec<u8> to CRC32 - Created get_books to load all information about imported books - Added data folder in src-tauri to gitignore - Set fileDropEnabled in tauri.conf to enable html drag and drop - tauri-apps/tauri#3277 (comment) - Created allowlist in tauri.conf to accept current folder - Enabled all api features in AllowListConfig - Created get_book_by_hash function with returns the book data [Core] - Added window.__TAURI__ to global typescript definitions - Added Drag and Drop support to Home.tsx, which imports books with tauri - Drag and Drop Generated Book Cover which is sent to tauri - Added DropZone to Home.tsx - Made defaults.css load from absolute path - Created /reader/:bookHash route - Made reader load bytes from bookhash, otherwise, falls back to placeholder book - Fixed crash when clicking TOC: Found in f914e547 [Webpack] - Added publicPath: '/' to fix react router bug not navigating to nested components [Dependencies] Added "react-dropzone" for drag and drop Added "@tauri-apps/api" for calling Tauri from front end Added tauri = { version = "1.2.2", features = ["api-all"] } Added crc32fast = "1.3.2" Updated "react-router-dom": "^6.4.0", -> ^6.6.1
---Changelog--- [Tauri] - Created create_or_load_data to initialize the directory and load tauri - Created import_book to handle the importing of new books - Created get_hash to handle Vec<u8> to CRC32 - Created get_books to load all information about imported books - Added data folder in src-tauri to gitignore - Set fileDropEnabled in tauri.conf to enable html drag and drop - tauri-apps/tauri#3277 (comment) - Created allowlist in tauri.conf to accept current folder - Enabled all api features in AllowListConfig - Created get_book_by_hash function with returns the book data [Core] - Added window.__TAURI__ to global typescript definitions - Added Drag and Drop support to Home.tsx, which imports books with tauri - Drag and Drop Generated Book Cover which is sent to tauri - Added DropZone to Home.tsx - Made defaults.css load from absolute path - Created /reader/:bookHash route - Made reader load bytes from bookhash, otherwise, falls back to placeholder book - Fixed crash when clicking TOC: Found in f914e547 [Webpack] - Added publicPath: '/' to fix react router bug not navigating to nested components [Dependencies] Added "react-dropzone" for drag and drop Added "@tauri-apps/api" for calling Tauri from front end Added tauri = { version = "1.2.2", features = ["api-all"] } Added crc32fast = "1.3.2" Updated "react-router-dom": "^6.4.0", -> ^6.6.1
Describe the bug
I'm writing a vue3 tauri project with typescript. The behavior of the executable packaged with tauri is not consistent with the browser preview. In the API for HTML drag, only the
dragstart
anddragend
work for me. The other don't trigger at all.Work:
Not Work:
Not tested:
I have set "fileDropEnabled":false.
Reproduction
run:
HTML Example:
Drag item1 onto item2.
firefox output:
tauri output:
Expected behavior
No response
Platform and versions
Stack trace
No response
Additional context
My English isn't very good, please forgive me.
The text was updated successfully, but these errors were encountered: