-
Improvement
-
Resolution: Fixed
-
Minor
-
3.5
-
MOODLE_35_STABLE
-
MOODLE_36_STABLE
-
wip-
MDL-62411-master -
The drag and drop markers question type currently uses the yui javascript library. This improvement is to update to amd/jquery.
While upgrading the javascript there is also the opportunity to introduce two new features.
First there is a more intuitive question editing experience for teachers creating this type of question. The question preview will now automatically show a drop area shape once the teacher selects the shape type, and rather than manipulating the shape by entering coordinates, it is now possible to drag the shape into position and adjust the dimensions of the shape within the preview - with coordinates being updated automatically. Of course teachers can still adjust the drop area shape by entering coordinates if they wish.
For students this question may now be answered on mobile devices, and is tested working on iOS 11.3 where there have been issues with passive events for other areas of code.
The branch for review contains two commits. The first introduces three new javascript libraries: autoscroll, dragdrop and svgjs. The first two are very small and should be useful to anyone else wishing to use a dragdrop library that cope with the iOS passive events issue. Svgjs is a lightweight opensource library (https://svgdotjs.github.io/) that again others may wish to use to draw svg shapes on the fly. The second commit is the upgrade of ddmarkers.
- blocks
-
MDL-63277 Convert drag-drop into text question type JS from YUI to AMD
- Closed
- caused a regression
-
MDL-63874 qtype_ddmarker & qtype_ddimageortext layout can break if other things on the page change size
- Closed
-
MDL-63875 qtype_ddmarker layout wrong with multi-line markers
- Closed
- has been marked as being related by
-
MDL-63277 Convert drag-drop into text question type JS from YUI to AMD
- Closed
- is duplicated by
-
MDL-51997 ddmarker needs an easier way to create target areas
- Closed
- Testing discovered
-
MDL-63781 Drag-drop markers: Changing the shape in IE makes it to disappear
- Closed