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

Feature: baked-in dragging features #12

Open
willshowell opened this issue Sep 11, 2017 · 1 comment
Open

Feature: baked-in dragging features #12

willshowell opened this issue Sep 11, 2017 · 1 comment
Labels

Comments

@willshowell
Copy link
Contributor

willshowell commented Sep 11, 2017

Some api notes

  1. enable/disable
  2. snap back to anchor with/without animation
  3. Probably relies on Feature: backdrop options #9 since dragging is sort of predicated on the idea of interacting with content behind it (completed)
@willshowell
Copy link
Contributor Author

willshowell commented Nov 3, 2017

This may also work better as a globally positioned popover with draggability as an input

<sat-popover global draggable top="40px" right="40px">
  <!-- ... -->
</sat-popover>

It would mean that anchors are optional when global is specified. Another option would be to make a new component that opens itself wherever in the viewport.

<sat-global-popover #gp [draggable]="movingEnabled" top="40px" right="40px">
  <!-- ... -->
</sat-global-popover>

<button (click)="gp.dock()">Return to original position</button>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant