-
Notifications
You must be signed in to change notification settings - Fork 0
#34776 add allowSegmentVerticalDragFunction props #87
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
base: master-flower-platform
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -498,7 +498,12 @@ export default class Timeline extends React.Component { | |
| * | ||
| * @type { undefined | boolean} | ||
| */ | ||
| showZommShortcuts: PropTypes.bool | ||
| showZommShortcuts: PropTypes.bool, | ||
|
|
||
| /** | ||
| * @type {undefined | (selectedItems: (number | string)[]) => boolean} | ||
| */ | ||
| allowSegmentVerticalDragFunction: PropTypes.func | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. deocamdata nu am o idee finala; vad insa neconcordante: 1/ nici o functie nu are "segment". Cateva au "onItem..." |
||
| }; | ||
|
|
||
| static defaultProps = { | ||
|
|
@@ -1401,6 +1406,7 @@ export default class Timeline extends React.Component { | |
| let animatedItems = this._gridDomNode.querySelectorAll("span[isDragging='True'") || []; | ||
|
|
||
| let dx = (parseFloat(target.getAttribute('drag-x')) || 0) + e.dx; | ||
| // this is location for calculate the new dy using allowSegmentVerticalDragFunction function | ||
| let dy = (parseFloat(target.getAttribute('drag-y')) || 0) + e.dy; | ||
| let selections = []; | ||
|
|
||
|
|
||
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.
atentie greseala de scriere