MDL-68439 qtype_ddwtos: UI issues

- Fixed cursor for dropped ddwtos
 - Fixed the animation of "flying back to the home position" starts off at the right end of the previous line"
This commit is contained in:
Huong Nguyen 2020-04-28 17:13:57 +07:00
parent 9df4a4de18
commit 51de017235
4 changed files with 5 additions and 5 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -314,11 +314,11 @@ define(['jquery', 'core/dragdrop', 'core/key_codes'], function($, dragDrop, keys
// Is there already a drag in this drop? if so, evict it.
var oldDrag = this.getCurrentDragInPlace(this.getPlace(drop));
if (oldDrag.length !== 0) {
oldDrag.addClass('beingdragged');
oldDrag.offset(oldDrag.offset());
var currentPlace = this.getClassnameNumericSuffix(oldDrag, 'inplace');
var hiddenDrop = this.getDrop(oldDrag, currentPlace);
hiddenDrop.addClass('active');
oldDrag.addClass('beingdragged');
oldDrag.offset(hiddenDrop.offset());
this.sendDragHome(oldDrag);
}

View File

@ -34,7 +34,7 @@
cursor: move;
}
.que.ddwtos .readonly .draghome {
.que.ddwtos.qtype_ddwtos-readonly .draghome {
cursor: default;
}