-
Notifications
You must be signed in to change notification settings - Fork 7
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
Fix mousemove bug, ghost offset bug, requiring children if no handle … #16
Conversation
…option set, remove need for emitBetween, use border-box, add code to implement ghostClass options
@jvanbruegge I just tried the |
Also I needed to switch to |
The parentSelector example has a weird offset and the update example throws an error
We are not using handlebars? |
The reason the |
Also the |
No, that line is also in the merge: https://github.com/cyclejs-community/cyclejs-sortable/pull/16/files#diff-78060b682ecec44974ea9e5dde4a8310R36 |
src/makeSortable.ts
Outdated
) | ||
.take(1) | ||
.of(ev) | ||
.compose(delay(options.selectionDelay)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo/bug. The options.selectionDelay
should read defaults.selectionDelay
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changing that line will fix the issue in the updateEvent
example
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The whole line should read .compose(delay(defaults.selectionDelay))
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Weird that typescriot did not complain
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TS didn't complain because an 'options' variable exists in the scope. 'defaults' is the normalized version of 'options' which contains the defaults.
Regarding the weird offsets, the parent elements all need to have |
Please make a Pr based on this one, then I can squash&merge |
…Event and parentSelector examples (#17)
…option set, remove need for emitBetween, use border-box, add code to implement ghostClass options
Continuation of #15