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

Problem Editing Entries that are also extendable #1778

Open
NReib opened this issue Mar 20, 2024 · 1 comment
Open

Problem Editing Entries that are also extendable #1778

NReib opened this issue Mar 20, 2024 · 1 comment

Comments

@NReib
Copy link

NReib commented Mar 20, 2024

Movable entries of a timeline have a small overlay on the right and left edge that can be used to extend the duration of the entry.
When this area is double-clicked in order to edit the entry, instead of firing onUpdate, the onAdd-Event is fired.

Is this expected behaviour like in a copy function or is it a bug?

@NReib NReib changed the title Problem Editing Entries that are also movable Problem Editing Entries that are also extendable Mar 20, 2024
@NReib
Copy link
Author

NReib commented Mar 20, 2024

To me it seems like the event handler is missing on the dragRight / dragLeft Element

I manually added them by copying it from the dragCenter Element.

                let me = this;
	        this.hammerDragRight.on('tap', function (event) {
	          me.parent.itemSet.body.emitter.emit('click', {
	            event: event,
	            item: me.id
	          });
	        });
	        this.hammerDragRight.on('doubletap', function (event) {
	          event.stopPropagation();
	          me.parent.itemSet._onUpdateItem(me);
	          me.parent.itemSet.body.emitter.emit('doubleClick', {
	            event: event,
	            item: me.id
	          });
	        });

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

No branches or pull requests

1 participant