Skip to content

Commit

Permalink
MDL-68439 qtype_ddwtos: UI issues
Browse files Browse the repository at this point in the history
 - 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"
  • Loading branch information
HuongNV13 committed May 21, 2020
1 parent 9df4a4d commit 51de017
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion question/type/ddwtos/amd/build/ddwtos.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion question/type/ddwtos/amd/build/ddwtos.min.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions question/type/ddwtos/amd/src/ddwtos.js
Expand Up @@ -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);
}

Expand Down

0 comments on commit 51de017

Please sign in to comment.