Giter VIP home page Giter VIP logo

Comments (7)

knopp avatar knopp commented on July 16, 2024 1

I can reproduce this with combination of transparent title bar + full size content view. I'm looking into it.

from super_native_extensions.

knopp avatar knopp commented on July 16, 2024 1

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.

knopp avatar knopp commented on July 16, 2024

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.

leonx98 avatar leonx98 commented on July 16, 2024

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.

knopp avatar knopp commented on July 16, 2024

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.

leonx98 avatar leonx98 commented on July 16, 2024

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.

leonx98 avatar leonx98 commented on July 16, 2024

It works now. Wonderful, thank you! 🚀

from super_native_extensions.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.