Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use HTML Drag and Drop API [WIP] #771

Open
wants to merge 40 commits into
base: master
Choose a base branch
from

Commits on Nov 1, 2021

  1. Use 'draggable' attribute to indicate allowable drag targets.

    This follows the conventions of the HTML5 drag-and-drop API,
    and replaces the _extraAllowableChildTargets property.
    PerBothner committed Nov 1, 2021
    Configuration menu
    Copy the full SHA
    c14a0f6 View commit details
    Browse the repository at this point in the history

Commits on Jan 16, 2022

  1. Configuration menu
    Copy the full SHA
    397afe7 View commit details
    Browse the repository at this point in the history
  2. Implement 'TitleRenderer' hook for tab titles.

    This replaces the long-title branch and pull-request.
    PerBothner committed Jan 16, 2022
    Configuration menu
    Copy the full SHA
    39a7a04 View commit details
    Browse the repository at this point in the history

Commits on Jan 17, 2022

  1. Fixes to shut up lint:ts

    PerBothner committed Jan 17, 2022
    Configuration menu
    Copy the full SHA
    c21f827 View commit details
    Browse the repository at this point in the history

Commits on Jan 21, 2022

  1. Configuration menu
    Copy the full SHA
    39e9d77 View commit details
    Browse the repository at this point in the history

Commits on Jan 24, 2022

  1. Configuration menu
    Copy the full SHA
    c563877 View commit details
    Browse the repository at this point in the history
  2. Fix two lint complaints

    PerBothner committed Jan 24, 2022
    Configuration menu
    Copy the full SHA
    2e8cea9 View commit details
    Browse the repository at this point in the history

Commits on Jan 31, 2022

  1. Configuration menu
    Copy the full SHA
    de08994 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6b0b6d9 View commit details
    Browse the repository at this point in the history

Commits on Feb 2, 2022

  1. In tryUpdateTabSizes update _lastVisibleTabIndex.

    Some tweaks when really low on space and dropdownActive:
    Don't overlap tabs too much, unless needed for active tab.
    PerBothner committed Feb 2, 2022
    Configuration menu
    Copy the full SHA
    37cfe50 View commit details
    Browse the repository at this point in the history
  2. Initial support for using browser's Drag-and-Drop API

    Numerous problems still to fix.
    PerBothner committed Feb 2, 2022
    Configuration menu
    Copy the full SHA
    4278be8 View commit details
    Browse the repository at this point in the history

Commits on Feb 5, 2022

  1. Configuration menu
    Copy the full SHA
    54648fc View commit details
    Browse the repository at this point in the history

Commits on Feb 17, 2022

  1. Configuration menu
    Copy the full SHA
    de52a1d View commit details
    Browse the repository at this point in the history

Commits on Feb 23, 2022

  1. Catch iframe pointer-events in other top-level windows

    When a drag starts we disable pointer-events in iframes so we can
    we can follow mouse and drag events.  The complication is
    when the drag starts in one top-level window, but drag-over freedback
    and possible drop cn happen on other top-level windows. This change
    provides a event-hook that applications can use to notify other windows.
    
    Also some other minor tweaks.
    PerBothner committed Feb 23, 2022
    Configuration menu
    Copy the full SHA
    0681ecb View commit details
    Browse the repository at this point in the history

Commits on Mar 25, 2022

  1. Add events to support drag to decktop (i.e. popout).

    This uses new drag-enter-window and drag-leave-window events which
    can be used to track if pointer is in a window and hence whether drop
    was to a window or to desktop.
    PerBothner committed Mar 25, 2022
    Configuration menu
    Copy the full SHA
    e2a9bb3 View commit details
    Browse the repository at this point in the history

Commits on Apr 12, 2022

  1. Implement cancel of drag

    Usuallu typing Esc during a drag.  Should restore pre-drag state.
    PerBothner committed Apr 12, 2022
    Configuration menu
    Copy the full SHA
    d42455a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    64a0aab View commit details
    Browse the repository at this point in the history
  3. Fix some lint problems

    PerBothner committed Apr 12, 2022
    Configuration menu
    Copy the full SHA
    c62722f View commit details
    Browse the repository at this point in the history

Commits on Apr 20, 2022

  1. Configuration menu
    Copy the full SHA
    27454a6 View commit details
    Browse the repository at this point in the history

Commits on Apr 25, 2022

  1. Pass extra DragEvent parameter to "dragExported" event

    This is used to position windows after "drag-to-desktop".
    PerBothner committed Apr 25, 2022
    Configuration menu
    Copy the full SHA
    194f00a View commit details
    Browse the repository at this point in the history

Commits on May 28, 2022

  1. Configuration menu
    Copy the full SHA
    30423b4 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0f537e8 View commit details
    Browse the repository at this point in the history

Commits on Jun 18, 2022

  1. Configuration menu
    Copy the full SHA
    995f84e View commit details
    Browse the repository at this point in the history

Commits on Jun 21, 2022

  1. Btter border handling when using virtual components. Other changes.

    Remove the lm_headers element and back the header children of the stack
    element. The is safe now that a moved tab is hidden but not removed
    until dragend.
    Create a lm_item child under lm_items for each component. This makes it
    easier to set position out-of-item-tree components even it lm_items
    has border and padding.  Various related simplifications, including
    item.element is now always meaningful (the lm_item child of lm_items).
    We can ignore contentInset setting in position calculations; instead we just
    use it to set item margin.
    Remove VIRTUAL_ELEMENT_DUMMY static - just use undefined.
    New contentItem.createElement convenience function.
    PerBothner committed Jun 21, 2022
    Configuration menu
    Copy the full SHA
    7f2502e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e818016 View commit details
    Browse the repository at this point in the history
  3. Fix some lint complaints.

    PerBothner committed Jun 21, 2022
    Configuration menu
    Copy the full SHA
    0e0aba6 View commit details
    Browse the repository at this point in the history

Commits on Jun 23, 2022

  1. Changes to splitter to work better for transparent windows

    Add a "background" child of the lm_splitter element.
    Make the background wider than the splitter, but use negative z-index.
    On dragging move the drag-handle only.
    PerBothner committed Jun 23, 2022
    Configuration menu
    Copy the full SHA
    f291f25 View commit details
    Browse the repository at this point in the history

Commits on Jun 25, 2022

  1. Configuration menu
    Copy the full SHA
    e16d316 View commit details
    Browse the repository at this point in the history

Commits on Jul 23, 2022

  1. Fix/add some comments.

    PerBothner committed Jul 23, 2022
    Configuration menu
    Copy the full SHA
    be4a682 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a5bca25 View commit details
    Browse the repository at this point in the history

Commits on Aug 10, 2022

  1. Fix race condition between requestAnimationFrame and dragenter.

    We would sometimes get a race where the dragenter would be called before
    we removed/hid the dragged component in the requestAnimationFrame (called
    by the dragstart handler).  This could cause calculateItemAreas to be wrong.
    PerBothner committed Aug 10, 2022
    Configuration menu
    Copy the full SHA
    dcd1c55 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c580de7 View commit details
    Browse the repository at this point in the history
  3. New constructor GoldenLayout(config, container, position)

    This allows more flexible positioning of lm_goldenlayout element.
    For example it can follow a titlebar or menubar without
    neeeding to be nested in an extra container.
    Also nest droptarget-indicator within lm_goldenlayout element,
    to avoid less clutter in the top-level body.
    PerBothner committed Aug 10, 2022
    Configuration menu
    Copy the full SHA
    42c6f25 View commit details
    Browse the repository at this point in the history

Commits on Aug 11, 2022

  1. Configuration menu
    Copy the full SHA
    6195d2f View commit details
    Browse the repository at this point in the history
  2. Fix lint:ts warnings

    PerBothner committed Aug 11, 2022
    Configuration menu
    Copy the full SHA
    5efae74 View commit details
    Browse the repository at this point in the history

Commits on Aug 27, 2022

  1. Configuration menu
    Copy the full SHA
    a13de43 View commit details
    Browse the repository at this point in the history

Commits on Oct 5, 2022

  1. Configuration menu
    Copy the full SHA
    37ec5ad View commit details
    Browse the repository at this point in the history

Commits on Nov 6, 2022

  1. Configuration menu
    Copy the full SHA
    2954170 View commit details
    Browse the repository at this point in the history

Commits on Feb 2, 2023

  1. make drag-end work better using timing heuristics.

    Also make old non-drag logic (if useDragAndDrop is false) work again.
    PerBothner committed Feb 2, 2023
    Configuration menu
    Copy the full SHA
    afd9a09 View commit details
    Browse the repository at this point in the history

Commits on Feb 4, 2023

  1. Configuration menu
    Copy the full SHA
    0c9382d View commit details
    Browse the repository at this point in the history