wails icon indicating copy to clipboard operation
wails copied to clipboard

[v3] drag n drop does not work as expected after resizing window

Open Etesam913 opened this issue 5 months ago • 0 comments

Description

If you resize the window and then try to drag a file into the window, the file will usually get rejected

To Reproduce

  1. git checkout v3-alpha
  2. cd v3/examples/drag-n-drop
  3. go run main.go
  4. resize window
  5. drag file into window

https://github.com/user-attachments/assets/94a243a5-8dd7-4aa1-859f-0c01736809a4

Expected behaviour

The drag and drop would always accept the file if it is over the window. Resizing the window should have no impact.

Screenshots

No response

Attempted Fixes

No response

System Details

@Etesams-MacBook-Air ~/C/w/v/e/drag-n-drop (v3-alpha-fix-customEventProcessor-for-drag-n-drop)  
wails3 doctor

                                
          Wails Doctor          
                                

                                                                                                      
# System
┌────────────────────────────┐
| Name          | MacOS      |
| Version       | 15.0       |
| ID            | 24A5331b   |
| Branding      | MacOS 15.0 |
| Platform      | darwin     |
| Architecture  | arm64      |
| Apple Silicon | true       |
| CPU           | Apple M2   |
| CPU           | Unknown    |
| GPU           | Unknown    |
| Memory        | Unknown    |
└────────────────────────────┘

# Build Environment
┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
| Wails CLI      | v3.0.0-alpha.6                                                                                                            |
| Go Version     | go1.23.1                                                                                                                  |
| Revision       | ef8c886b101ab13258998cbb0cfca36db5b110e4                                                                                  |
| Modified       | false                                                                                                                     |
| -buildmode     | exe                                                                                                                       |
| -compiler      | gc                                                                                                                        |
| CGO_CFLAGS     |                                                                                                                           |
| CGO_CPPFLAGS   |                                                                                                                           |
| CGO_CXXFLAGS   |                                                                                                                           |
| CGO_ENABLED    | 1                                                                                                                         |
| CGO_LDFLAGS    |                                                                                                                           |
| DefaultGODEBUG | asynctimerchan=1,gotypesalias=0,httpservecontentkeepheaders=1,tls3des=1,tlskyber=0,x509keypairleaf=0,x509negativeserial=1 |
| GOARCH         | arm64                                                                                                                     |
| GOARM64        | v8.0                                                                                                                      |
| GOOS           | darwin                                                                                                                    |
| vcs            | git                                                                                                                       |
| vcs.modified   | false                                                                                                                     |
| vcs.revision   | ef8c886b101ab13258998cbb0cfca36db5b110e4                                                                                  |
| vcs.time       | 2024-09-08T22:36:19Z                                                                                                      |
└────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘

# Dependencies
┌────────────────────────────────────────────────────────────────────────┐
| Xcode cli tools | 2409                                                 |
| npm             | 10.8.1                                               |
| *NSIS           | Not Installed. Install with `brew install makensis`. |
└─────────────────────── * - Optional Dependency ────────────────────────┘

# Diagnosis
 SUCCESS  Your system is ready for Wails development!

Need documentation? Run: wails3 docs

 ♥   If Wails is useful to you or your company, please consider sponsoring the project: wails3 sponsor

Additional context

You will have to fix #3741 first to be able to run the example. Then the resizing window bug will be able to be tested.

Etesam913 avatar Sep 12 '24 05:09 Etesam913