Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Drag and drop

From Wikipedia, the free encyclopedia
Action in computer graphic user interfaces

Animage being dragged onto a web browser icon, which opens the image in theweb browser
icon
This sectionmay need to be rewritten to comply with Wikipedia'squality standards.You can help. Thetalk page may contain suggestions.(September 2025)

In computergraphical user interfaces,drag and drop is apointing device gesture in which theuser 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 twoabstract 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.[1]

Actions

[edit]

The basic sequence involved in drag and drop is:

  • Move thepointer to the object
  • Press, and hold down, the button on themouse or otherpointing 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 (seeFitts' 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.[2]Extended dragging and dropping (as in graphic design) can stress the mousing hand.

A design problem appears when the same buttonselects 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 inMac OS X with the introduction ofExposé.

In Mac OS

[edit]

Drag and drop, calledclick and drag at the time, was used in theoriginal Macintosh to manipulate files (for example, copying them between disks[3] or folders[4]).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" toSystem 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 asingle 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

[edit]

TheWorkplace Shell ofOS/2 uses dragging and dropping extensively with thesecondary mouse button, leaving the primary one for selection and clicking.Its use like that of other advancedCommon User Access features distinguished native OS/2 applications fromplatform-independent ports.

In Web design

[edit]

In HTML

[edit]

TheHTML5 working draft specification includes support for drag and drop.[5] 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 applicationGmail supports drag-and-drop of images and attachments in the latestGoogle Chrome browser and Apple'sSafari (5.x). Google Images permits users to drag and drop image files into a browser to perform areverse image search.


In Website builders

[edit]

A drag and dropwebsite builder (also calledDIY 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 fordevelopment experience or knowledge ofcoding languages.No-code platforms have progressed well beyond the capabilities of early visual editors.[6] With the advent ofArtificial intelligence (AI), building a website has become even quicker.[7]

As of May 2025 more than 21 million websites were constructed with usage of drag and drop website builder. The market leaders are:[8]

RankWebsite builderNumber of websitesMarket share
1.Wix.com7.0M33%
2.Squarespace5.2M25%
3.GoDaddy4.1M19%
4.Weebly0.7M3%

On a touch screen

[edit]

Touch screen interfaces also include drag and drop, or more precisely, long press, and then drag, e.g. on theiPhone orAndroid 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 oniPads.[9] On iPhones, the functionality is only available within the same app that the user started the drag.[10]

In end-user programming

[edit]
See also:Visual programming language

Drag and drop is considered an important program construction approach in manyend-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,[11] 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 asBlender.[12] Drag and drop also features in some video game engines, includingUnreal Engine,GameMaker Studio,Construct 2 and, with expansion,Unity.

Examples

[edit]

A common example is dragging an icon on a virtualdesktop to a special trashcanicon to delete a file.

Further examples include:

  • Dragging a data file onto aprogramicon or window for viewing or processing. For instance, dropping an icon that represents a text file into a Microsoft Word window signifies "Open this document as a new document in Word"
  • Moving or copying files to a new location/directory/folder,
  • Adding objects to a list of objects to be processed,
  • Rearrangingwidgets in agraphical user interface to customize their layout,
  • Dragging an attribute onto an object to which the command is to be applied,
    • e.g. dragging a color onto a graphical object to change its color,
  • Dragging a tool to a canvas location to apply the tool at that location,
  • Creating ahyperlink from one location or word to another location or document.
  • Most word processors allow dragging selected text from one point to another.
  • Dragging a series of code blocks such as inBlender for designing shaders and materials.

See also

[edit]

References

[edit]
  1. ^Jakob Nielsen, "Top-10 Application-Design Mistakes,"http://www.useit.com/alertbox/application-mistakes.html (19 February 2008).
  2. ^Buxton, W. (1986)."Chunking and Phrasing and the Design of Human-Computer Dialogues".Proceedings of the IFIP World Computer Congress. pp. 475–480. Archived fromthe original on 7 June 2004.
  3. ^"Disk Swapper's Elbow". folklore.org.
  4. ^"The Grand Unified Model (2): The Finder". folklore.org.
  5. ^"HTML5 W3C Working Draft". w3.org.
  6. ^Groot, Ralph de (3 November 2022)."Website Builder Statistics 2025 – 50 Mind Blowing Numbers".My Codeless Website. Retrieved20 May 2025.
  7. ^Ryan, Emma (12 July 2023)."I Tested 6 AI Website Builders: Which Should You Use?".Website Builder Expert. Marketing VF Ltd. Retrieved20 May 2025.
  8. ^"Simple Website Builder Usage Distribution on the Entire Internet".builtwith.com. BuiltWith Pty Ltd. 12 May 2025. Archived fromthe original on 12 May 2025. Retrieved20 May 2025.
  9. ^"iPad Drag and Drop, Multitasking, and Split View in iOS 11: Everything you need to know!".iMore. Retrieved10 October 2017.
  10. ^Vincent, James (7 June 2017)."The iPhone is also getting drag and drop with iOS 11".The Verge. Retrieved23 June 2017.
  11. ^"Moving Beyond Syntax: Lessons from 20 Years of Blocks Programing in AgentSheets"(PDF).Journal of Visual Languages and Sentient Systems. Archived fromthe original(PDF) on 28 April 2019. Retrieved29 November 2018.
  12. ^"Render – Blender Reference Manual".blender.org. Archived fromthe original on 23 March 2015. Retrieved24 January 2014.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Drag_and_drop&oldid=1321152766"
Category:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp