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

modifications #1

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

modifications #1

wants to merge 4 commits into from

Conversation

aharpervc
Copy link

No description provided.

…) but principally these changes:

* added 'debugLevel' option (default 0=none, 1=once per load, 2=once per drag, 3=firehose)
* added 'dragElementCenter' option (default false=mouse drags element top, true=mouse drags element vertical center)
* added concept of constraining dragged item to it's parent element, via three options:
  - 'constrain' (default false=can drag without restriction, true=dragging limited to parent top and bottom, true=apply following two options)
  - 'constrainMarginTop (default 0, distance inside parent from top where dragging is forbidden)
  - 'constrainMarginBottom (default 0, same as constrainMarginTop but from the bottom)
* ran the script through JSLint and accepted the fact that my feelings would be hurt in exchange for a variety of small fixes reducing logic and whitespace ambiguity.
… with the 'sortable-' prefix, replacing 'sorting', 'active', and 'active-drag-item') with more sensible names;

* Added css file with some default styles, and moved the application styles that were in css() calls here too.
@aharpervc
Copy link
Author

Alright with this new commit I cover up a couple problems with the previous one so if you care to, it's safe to merge. However it will break as a drop in replacement for yours since I changed the class names and moved the styles to a stylesheet.

…ge if it's part of a nested structure;

Don't manually set opacity, do it in the css class;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant