ArticleslgStudy

science

Drag and drop

Drag and drop is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Drag and drop rather than just read about it. In short: In computer graphical user interfaces, drag and drop is a pointing device gesture in which the user selects a virtual object by "grabbing" it and dragging it to a different location or onto another virtual object. In general, it can be used to invoke many kinds of actions, or create various types of associations between two abstract objects.

Drag and drop — main illustration
Drag and drop — illustration

Key takeaways

  • Drag and drop belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Drag and drop to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Drag and drop from memory before moving on to harder problems.

Reference excerpt

In computer graphical user interfaces, drag and drop is a pointing device gesture in which the user selects a virtual object by "grabbing" it and dragging it to a different location or onto another virtual object. In general, it can be used to invoke many kinds of actions, or create various types of associations between two abstract objects. As a feature, drag-and-drop support is not found in all software, though it is sometimes a fast and easy-to-learn technique. However, it is not always clear to users that an item can be dragged and dropped, or what command is performed by the drag and drop, which can decrease usability.

Actions The basic sequence involved in drag and drop is:

Move the pointer to the object Press, and hold down, the button on the mouse or other pointing device, to "grab" the object "Drag" the object to the desired location by moving the pointer to this one "Drop" the object by releasing the button Dragging requires more physical effort than moving the same pointing device without holding down any buttons. Because of this, a user cannot move as quickly and precisely while dragging (see Fitts' law). However, drag-and-drop operations have the advantage of thoughtfully chunking together two operands (the object to drag, and the drop location) into a single action. Extended dragging and dropping (as in graphic design) can stress the mousing hand. A design problem appears when the same button selects and drags items. Imprecise movement can cause an attempt to select an object to register as a dragging motion. Another problem is that the target of the dropping can be hidden under other objects. The user would have to stop the dragging, make both the source and the target visible and start again. In classic Mac OS the top-of-screen menu bar served as a universal "drag cancel" target. This issue has been dealt with in Mac OS X with the introduction of Exposé.

In Mac OS Drag and drop, called click and drag at the time, was used in the original Macintosh to manipulate files (for example, copying them between disks or folders). System 7 added the ability to open a document in an application by dropping the document icon onto the application's icon. Apple added "Macintosh Drag and Drop" to System 7.5, extending "click and drag" to common clipboard operations like copying or moving textual content within a document. Content could also be dragged into the filesystem to create a "clipping file" which could then be stored and reused. Files could also be dropped on application windows, for example to enclose a document in an email, or add an image to a word processor document. For most of its history, Mac OS has used a single button mouse with the button covering a large portion of the top surface of the mouse. This may mitigate the ergonomic concerns of keeping the button pressed while dragging.

In OS/2 The Workplace Shell of OS/2 uses dragging and dropping extensively with the secondary mouse button, leaving the primary one for selection and clicking. Its use like that of other advanced Common User Access features distinguished native OS/2 applications from platform-independent ports.

In web design

In HTML The HTML5 working draft specification includes support for drag and drop. HTML5 supports different kinds of dragging and dropping features including:

Drag and Drop texts and HTML codes Drag and Drop HTML elements Drag and Drop files Based on needed action, one of the above types can be used. Note that when an HTML element is dragged for moving its current position, its ID is sent to the destination parent element; so it sends a text and can be considered as the first group. Google's web-based e-mail application Gmail supports drag-and-drop of images and attachments in the latest Google Chrome browser and Apple's Safari (5.x). Google Images permits users to drag and drop image files into a browser to perform a reverse image search.

In website builders A drag and drop website builder (also called DIY website builders) offers a visual interface where users can create and customize their websites by simply "dragging" and "dropping" various elements onto a page without the need for development experience or knowledge of coding languages. No-code platforms have progressed well beyond the capabilities of early visual editors. With the advent of Artificial intelligence (AI), building a website has become even quicker. As of May 2025, more than 21 million websites were constructed with usage of drag and drop website builder. Wix accounted for roughly one-third of websites built with drag-and-drop website builders. Others, such as Weebly, Hostinger, and GoDaddy, are also active in the market. The market leaders are:

On a touch screen Touch screen interfaces also include drag and drop, or more precisely, long press, and then drag, e.g. on the iPhone or Android home screens. iOS 11 implements a drag-and-drop feature which allows the user to touch items (and tap with other fingers to drag more) within an app or between apps on iPads. On iPhones, the functionality is only available within the same app that the user started the drag.

In end-user programming

Drag and drop is considered an important program construction approach in many end-user development systems. In contrast to more traditional, text-based programming languages, many end-user programming languages are based on visual components such as tiles or icons that are manipulated by end users through drag-and-drop interfaces. AgentSheets, a programming environment for kids, introduced the modern notion of drag and drop blocks programming providing 4 core affordances: 1) Blocks that are end-user composable, 2) blocks are end-user editable, 3) blocks can be nested to represent tree structures, 4) blocks are arranged geometrically to define syntax. Drag and drop is also featured in many shader editing programs for graphics tools, such as Blender. Drag and drop also features in some video game engines, including Unreal Engine, GameMaker Studio, Construct 2 and, with expansion, Unity.

Examples A common example is dragging an icon on a virtual desktop to a special trashcan icon to delete a file. Further examples include:

… excerpt ends here. Continue reading the full article.

Illustrations

Drag and drop: An image being dragged onto a web browser icon, which opens the image in the web browser
An image being dragged onto a web browser icon, which opens the image in the web browser

Worked examples

Example 1 — a first encounter with Drag and drop

Start with the simplest possible case. Write down what Drag and drop claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Drag and drop before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Drag and drop ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Drag and drop

In research
Drag and drop appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Drag and drop in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Drag and drop is common in secondary-school and first-year university syllabi. It links to neighbouring topics User interface techniques, so understanding it makes those chapters shorter.
In everyday life
Look for Drag and drop outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Drag and drop” →

How to study Drag and drop in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Drag and drop means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Drag and drop out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Drag and drop in simple terms?

In computer graphical user interfaces, drag and drop is a pointing device gesture in which the user selects a virtual object by "grabbing" it and dragging it to a different location or onto another virtual object. In general, it can be used to invoke many kinds of actions, or create various types o…

Why does Drag and drop matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Drag and drop?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Drag and drop.

Tags

  • User interface techniques

Keep exploring