macos:Drop-feedback

出自UXGuide.net

跳转到:导航, 搜索

请帮助我们修订和更新本文的中文部分

本文的中文部分虽然取自官方最新中文版本,但与英文原版相比已落后了一年多,可能无法反映英文版本中最近的修改,且文中笔误、前后译法矛盾、未翻译完全的片断较多,请您帮助一起修订完善。详情参见中文版修订完善计划

松放反馈
Drop Feedback

目录


When the user releases the mouse button after dragging an item to a destination, feedback should inform the user that the drag-and-drop operation was successful. While this feedback can be visual, it is primarily behavioral in nature. The behavior comes from the semantic operation indicated by the drag-and-drop sequence.

当用户将对象拖拽到目标区域并松开鼠标时,松放反馈应该通知用户拖拽操作已经成功。如果这个反馈是可见的,这是很自然的行为,因为这是由拖拽操作的顺序决定的。

Finder图标
Finder Icons

When the user moves an item by dropping its icon on a folder icon, the dropped icon disappears and the highlighting is removed from the destination folder icon.

当用户通过将对象的图标拖拽到一个文件夹图标上来移动对象时,被拖放的图标应该消失,并且目标文件夹图标的高亮应 该被移除。

If an icon represents a task, such as printing, you may want to provide progress feedback to indicate that the task is being carried out.

如果图标代表着某项任 务,如打印,您可以要提供一下反馈来指示任务已经被执行。

图像
Graphics

When dropping graphics, the drop feedback is usually the movement of the actual item to the location of the mouse-up event.

如果拖拽的是图像,则松放的反馈通常是实际的图像移动到mouse-up事件发生的位置。

文字
Text

After text is dropped, it is shown highlighted at its destination.

文字被松放后会被高亮显示,如目标区域一样。

When text is dropped in a destination that supports styled text, the dropped text should maintain its font, typeface, and size attributes. If the destination does not support styled text, the dropped text should assume the font, typeface, and size attributes specified by the destination insertion point.

当文字被拖拽到一个支持格式字体的区域时,松放的文字应该保持它原有的字体,字样以及大小属性。如果目标区域不支持格式字体,被拖拽的 文字应 该使用插入点同样的字体。

Drag-and-drop operations involving text should support intelligent cut-and-paste rules, as explained in “Intelligent Cut and Paste

对文字的拖拽操作应该支持智能的剪切和粘贴规则,如“智能的剪切和粘贴”一节中所描述的。

选择的转移
Transferring a Selection

After a successful drag-and-drop sequence involving a single window, the selection feedback is maintained at the new location. This behavior provides an important user cue and allows the user to reposition the selection without having to make the selection again.

当拖拽操作成功的发生在单个窗口内时,选定区域会保持在新的位置。这种行为提供了很重要的暗示,使得用户可以重新放置选定的内容而无需再次 进行选择。

If the user drags an item from an active window to an inactive window, the dragged item becomes a background selection at the destination; the selection in the active window remains selected. This guideline also applies in the reverse situation, where an item is dragged from an inactive window to an active window.

如 果用户将一个对象从活动的窗口拖拽到非活动的窗口,则被拖拽的对象成为目标区域的后台选定对象; 活动窗口的选定对象仍然保留。这个准则在相反的情况也适用,也就 是从非活动的窗口拖拽到活动的窗口。

When content is dropped into a window in which something is selected, your application should deselect everything in the destination before the drop rather than replace the selection with the dragged item.

当对象拖拽进的窗口中已经有对象在选择状态时,您应该在放下对象前取消所有目标窗口的选择状态,而不是用拖拽的对象来替换已选择的对象。

无效拖拽的反馈
Feedback for an Invalid Drop

If a user attempts to drop an item on a destination that does not accept it, the item zooms from its mouse-up location back to its source location (a “zoomback”). The zoomback behavior should also occur when a drop inside a valid destination does not result in a successful operation.

如果用户试图将对象拖拽到一个不能接受该对象的区域,对象将会从鼠标松开的位置缩放到原来的位置("zoomback")。这种行为 同样发生在一个有效的目标区域无法拖拽成功时。

If the user attempts to drag multiple items to a destination that does not accept all of the items, none of the items should be accepted. In such cases you could display a dialog informing the user which type of data the destination accepts and which items in the dragged set cannot be accepted.

如果用户试图将多个对象拖拽到不能接受所有对象的区域时,任何对象都不应该被接受。在这种情况下,您可以显示一个对话框来通知用户目标区 域接受什么类型的数据,以及拖拽的对象中哪个对象的数据无法接受。.

导航
工具箱