diff --git a/package-lock.json b/package-lock.json index bd8f5890..cac60025 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@oat-sa/tao-item-runner-qti", - "version": "0.4.6", + "version": "0.4.8", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 3227d8b9..2b26fa0c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@oat-sa/tao-item-runner-qti", - "version": "0.4.7", + "version": "0.4.8", "displayName": "TAO Item Runner QTI", "description": "TAO QTI Item Runner modules", "files": [ diff --git a/src/qtiCommonRenderer/renderers/interactions/GraphicGapMatchInteraction.js b/src/qtiCommonRenderer/renderers/interactions/GraphicGapMatchInteraction.js index 0d8a08e6..c5a2e154 100644 --- a/src/qtiCommonRenderer/renderers/interactions/GraphicGapMatchInteraction.js +++ b/src/qtiCommonRenderer/renderers/interactions/GraphicGapMatchInteraction.js @@ -424,11 +424,13 @@ var _renderGapList = function _renderGapList(interaction, $gapList) { interactUtils.moveElement(e.target, e.dx / scaleX, e.dy / scaleY); }, onend: function(e) { - var $target = $(e.target); - _setInactiveGapState($target); - $target.removeClass('dragged'); - interactUtils.restoreOriginalPosition($target); - interactUtils.iFrameDragFixOff(); + _.defer( () => { + var $target = $(e.target); + _setInactiveGapState($target); + $target.removeClass('dragged'); + interactUtils.restoreOriginalPosition($target); + interactUtils.iFrameDragFixOff(); + }); } }) )