Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-63297

Convert drag-drop onto image question type JS from YUI to AMD

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.5.2
    • Fix Version/s: 3.6
    • Component/s: Questions
    • Labels:
    • Testing Instructions:
      Hide

      This question should work almost exactly the same way it worked before, and the automated tests are a pretty good test of the functionality.

      The main thing that needs to be tested manually are visual display issues, and that the question types works on the full range of browsers and devices.

      For manual testing instructions, see MDLQA-8182, which is the standard QA test for this question type. Also the docs: https://docs.moodle.org/35/en/Drag_and_drop_onto_image_question_type.

      The only change from the previous behaviour is that when a drag item needs to me moved to a new place (e.g. if you drag something into a place that is already full, and the thing that was there needs to be sent home, then that item is moved smoothly, rather than just jumping to its destination. This also applies when answering the question using only the keyboard (tab to hilight a place, then use left-right arrows).

      A key area to test is when creating or editing a question. There is a preview of the question on the editing form which should be constantly updated as you edit things.

      Show
      This question should work almost exactly the same way it worked before, and the automated tests are a pretty good test of the functionality. The main thing that needs to be tested manually are visual display issues, and that the question types works on the full range of browsers and devices. For manual testing instructions, see MDLQA-8182 , which is the standard QA test for this question type. Also the docs: https://docs.moodle.org/35/en/Drag_and_drop_onto_image_question_type . The only change from the previous behaviour is that when a drag item needs to me moved to a new place (e.g. if you drag something into a place that is already full, and the thing that was there needs to be sent home, then that item is moved smoothly, rather than just jumping to its destination. This also applies when answering the question using only the keyboard (tab to hilight a place, then use left-right arrows). A key area to test is when creating or editing a question. There is a preview of the question on the editing form which should be constantly updated as you edit things.
    • Affected Branches:
      MOODLE_35_STABLE
    • Fixed Branches:
      MOODLE_36_STABLE
    • Pull from Repository:
    • Pull Master Branch:

      Description

      Re-implement drag-drop onto image interaction using autoscroll.js and dragdrop.js libraries and writing the mouse/touch and keyboard interaction in Jquery.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              timhunt Tim Hunt
              Reporter:
              mkassaei Mahmoud Kassaei
              Peer reviewer:
              Mahmoud Kassaei
              Integrator:
              Damyon Wiese
              Tester:
              Damyon Wiese
              Participants:
              Component watchers:
              Tim Hunt, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                3/Dec/18