mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-24 05:25:12 +00:00
GUI: improve drag-and-drop, part 4
This commit is contained in:
parent
d1d92ac018
commit
1a3648eefd
2 changed files with 3 additions and 1 deletions
|
@ -168,7 +168,7 @@ void FurnaceGUI::finishSelection() {
|
|||
selectingFull=false;
|
||||
|
||||
if (dragging) {
|
||||
if (dragSourceX==dragDestinationX && dragSourceY==dragDestinationY) {
|
||||
if (dragSourceX==dragDestinationX && dragSourceY==dragDestinationY && dragSourceXFine==dragDestinationXFine) {
|
||||
cursor=cursorDrag;
|
||||
selStart=cursorDrag;
|
||||
selEnd=cursorDrag;
|
||||
|
|
|
@ -947,6 +947,8 @@ void FurnaceGUI::doDrag() {
|
|||
// copy and clear
|
||||
String c=doCopy(true,false,dragStart,dragEnd);
|
||||
|
||||
logV("copy: %s",c);
|
||||
|
||||
// replace
|
||||
cursor=selStart;
|
||||
doPaste(GUI_PASTE_MODE_NORMAL,0,false,c);
|
||||
|
|
Loading…
Reference in a new issue