Gah, I can't get this drag-and-drop to work. Shoul...
# tornadofx
p
Gah, I can't get this drag-and-drop to work. Should'n't this be enough to handle a "drop"? Neither of the handlers fire...
Copy code
override val root = scrollpane {
        stackpane {
            group {
                rectangle {
                    layoutX = 0.0
                    layoutY = 0.0
                    width = 5000.0
                    height = 5000.0
                    fill = Color.LIGHTGOLDENRODYELLOW

                    setOnDragDropped {
                        fire(EndComponentCreation(group))
                    }

                    setOnDragOver {
                        it.acceptTransferModes(TransferMode.COPY)
                    }
                }
            }.apply {
                group = this
            }
        }
    }