-
Notifications
You must be signed in to change notification settings - Fork 26
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
Accordion onmouseup change events guaranteed to not fire #96
Comments
I agree, the `this.dragging = false;` and `this.edge_dragging = false` need to be moved after the event has fired.
…On Tue, Oct 6, 2020 at 5:55 PM Zachary Boe ***@***.***> wrote:
https://github.com/LGSInnovations/sigplot/blob/5bae7873547e8a490a691ee30c2576800e6cb81a/js/sigplot.accordion.js#L429
this.dragging and this.edge_dragging are set to false just before the
if-statement that returns if one of them is false.
Furthermore, I believe the if-statement logic is incorrect. this.dragging
is set to true if the center is being dragged, and this.edge_dragging is
true if the edge is being dragged. They are never both true at the same
time it appears, so the if-statement will always be truthy and the event
never fired.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#96>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABYEIVKDLQW43LTAIQYZFTSJOG47ANCNFSM4SGS76EA>
.
|
@thezboe I fixed this in spectriclabs@4b58015 |
This has caused another issue with accordion events. I believe the following snippet needs to be sigplot/js/sigplot.accordion.js Line 437 in 5bae787
|
Thanks Zach we will take a look. FYI the primary source for SigPlot has been moved to https://github.com/spectriclabs/sigplot so I recommend placing any future issues there. |
sigplot/js/sigplot.accordion.js
Lines 429 to 451 in 5bae787
this.dragging
andthis.edge_dragging
are set to false just before the if-statement that returns if one of them is false.Furthermore, I believe the if-statement logic is incorrect.
this.dragging
is set to true if the center is being dragged, andthis.edge_dragging
is true if the edge is being dragged. They are never both true at the same time it appears, so the if-statement will always be truthy and the event never fired.The text was updated successfully, but these errors were encountered: