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

Fix for #87 #174

Merged
merged 1 commit into from
May 27, 2022
Merged

Fix for #87 #174

merged 1 commit into from
May 27, 2022

Conversation

SuspiciousActivity
Copy link
Contributor

Motivation and Context

I wanted to address the Firefox problem #87 and made a fix for it.

Description

We can use PointerEvent.target to get the element the user dragged the connection to.
If we drag the connection over the connectors on the side of an UML element, we can get the connectors direction attribute.
This fixes the problem in Firefox as well.

I inserted an if statement to check if the element we dragged the connection to has a direction attribute, if it does, use that, if it doesn't, use the old way.

Steps for Testing

  1. Open up Apollon in Firefox and add two classes.
  2. You can now connect them correctly if you use the connectors.

@minrows minrows mentioned this pull request May 27, 2022
@krusche krusche merged commit f8ba908 into ls1intum:develop May 27, 2022
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.

3 participants