Skip to content

Position object interaction

3.2.16 Position Object Interaction — a single image which must be positioned on another graphic image (the stage) by the candidate.

Example

The stage and the interaction are siblings — the stage holds the background image, the interaction holds the draggable one.

Drop Zone
<qti-position-object-stage>
<img src="https://qti-convert.web.app/images/uk.png" width="206" height="280" />
<qti-position-object-interaction>
<img src="https://qti-convert.web.app/images/airport.png" alt="Drop Zone" />
</qti-position-object-interaction>
</qti-position-object-stage>

qti-position-object-stage finds the draggable image via this.querySelector('qti-position-object-interaction > img') and implements dragging directly with mousedown/mousemove/mouseup — it doesn’t use the shared drag/drop mixins the other graphic interactions use.