Comments (7)
I can reproduce this with combination of transparent title bar + full size content view. I'm looking into it.
from super_native_extensions.
Can you retry this with super_drag_and_drop 0.1.9+3 and if the problem persists reopen the issue?
from super_native_extensions.
Can you be more specific? I tried setting
self.isMovable = true
self.isMovableByWindowBackground = true
for NSWindow
and it didn't work in "vanilla" Flutter application either. Which is expected because the FlutterView handles mouse events.
In general for dragging at arbitrary location we're using NSWindow performWindowDragWithEvent:
, but that's quite a bit involved and currently only implemented in NativeShell. I might consider bringing some version of this into super_native_extensions
.
from super_native_extensions.
Hmm... strange, but it works for us. In the awakeFromNib()
method we set isMovable = true
and dragging using the titlebar is possible. Only after a resize (maximize window and back) does this no longer work. Without your plugin everything works fine 🤔
from super_native_extensions.
Sorry, I misread, I thought you wanted to implement dragging using window contents. Window should be draggable by titlebar by default. You shouldn't be needing to set isMovable in awakeFromNib
.
Are you able to reproduce this with drag & drop example? Are you able to drag it after resize?
from super_native_extensions.
Yes, it's a standard behavior with the normal title bar.
I was able to reproduce the behavior in the example project as well. We use a transparent title bar (in the .xib file turn on Transparent Title Bar
and Full Size Content View
).
The window can no longer be moved after it has been resized (resize by dragging the edge or zooming), although isMovable
is true.
from super_native_extensions.
It works now. Wonderful, thank you! 🚀
from super_native_extensions.
Related Issues (20)
- android build fail without upgrade HOT 6
- [super_clipboard] ctrl+v after restart machine with did not ctrl+c/copy operation would make app crash HOT 1
- [Android][deprecation] view.startDrag(ClipData,DragShadowBuilder,Object,int) is deprecation in sdk 24 use view.startDragAndDrop instead HOT 2
- [super_context_menu] On Linux, when having a `image` in a MenuAction, it results in a black screen. HOT 1
- Build failed with an exception: Execution failed for task ':app:checkDebugDuplicateClasses'. HOT 2
- super_drag_drop not working on Android HOT 1
- flutter macos release build error HOT 2
- [super_context_menu] On macos, How to get the notification of onmenushow HOT 2
- [ super_drag_and_drop ] macOS ONLY bug, seems like MouseRegion is broken if dragconfig completes after onPointerUp triggered HOT 13
- [super_clipboard] Can't build as a flutter module HOT 6
- could not compile `time` (lib) due to 1 previous error HOT 6
- I hope to provide a function to get the absolute path of the file in DataReaderFile(reader.dart) HOT 1
- ContextMenuWidget child appears when scrolling HOT 3
- Remove context menu shadow HOT 3
- Starting the app stalls on "Installing NDK 23.1.7779620" after installing rustup on windows HOT 2
- can't compile ios build in github actions HOT 6
- Issue when using super_context_menu with flutter_markdown as a child HOT 6
- CustomValueFormat not supported on web?
- Wasm compilation fails because of `html` package usage HOT 2
- Drag text to Windows remote desktop window?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from super_native_extensions.