GUI: improve drag-and-drop, part 4
This commit is contained in:
parent
d1d92ac018
commit
1a3648eefd
|
@ -168,7 +168,7 @@ void FurnaceGUI::finishSelection() {
|
||||||
selectingFull=false;
|
selectingFull=false;
|
||||||
|
|
||||||
if (dragging) {
|
if (dragging) {
|
||||||
if (dragSourceX==dragDestinationX && dragSourceY==dragDestinationY) {
|
if (dragSourceX==dragDestinationX && dragSourceY==dragDestinationY && dragSourceXFine==dragDestinationXFine) {
|
||||||
cursor=cursorDrag;
|
cursor=cursorDrag;
|
||||||
selStart=cursorDrag;
|
selStart=cursorDrag;
|
||||||
selEnd=cursorDrag;
|
selEnd=cursorDrag;
|
||||||
|
|
|
@ -947,6 +947,8 @@ void FurnaceGUI::doDrag() {
|
||||||
// copy and clear
|
// copy and clear
|
||||||
String c=doCopy(true,false,dragStart,dragEnd);
|
String c=doCopy(true,false,dragStart,dragEnd);
|
||||||
|
|
||||||
|
logV("copy: %s",c);
|
||||||
|
|
||||||
// replace
|
// replace
|
||||||
cursor=selStart;
|
cursor=selStart;
|
||||||
doPaste(GUI_PASTE_MODE_NORMAL,0,false,c);
|
doPaste(GUI_PASTE_MODE_NORMAL,0,false,c);
|
||||||
|
|
Loading…
Reference in New Issue