-
Notifications
You must be signed in to change notification settings - Fork 6
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
mouse click on an object doesn't set the input variable of that object #11
Comments
So you have attached an tap event on the surrounding ellipse on the pump? |
I just noticed, that the tap works, when I click in the left half of the pump. It seams, that if I click in the area between the polyline it doesn't work. In the original java version it worked also in this area. I guess if I put the polyline below the ellipse (at the moment it is above the ellipse), it will work in the whole area of the ellipse. I will try in the next days and report again here. |
Yeah, I know this problem. The events are currently attached at the element itself e.g. the polyline but not the inner space. |
As expected, it works without problems when I put the polyline below the ellipse. But I will put it over the ellipse and test, when you address this bug. |
|
I've tested the new release 1.0.13-3, and there it still doesn't work. Maybe your fix didn't find its way to the new version? |
I think this could be fixed by usage of "pointer-event: visible" only on visible elements and otherwise "pointer-event: none" at the surrounding div. Was this your attempt too, Chris? |
Normally yeas but I have found some strange thing with the pointer event system. |
I think a quick fix woul be to set the pointer-events to "all". Would roughly correspond to the codesys visualization. |
In my visualisation I (mis)use objects (ellipse, rectangle) as buttons. I.e. the ellipse of my pump: Clicking on it, sets a variable to start/stop the pump. I set the variable in the tab mode (German "Variable tasten"). In the java visualisation it works without problems, but not in this javascript visualisation.
The text was updated successfully, but these errors were encountered: