{"action":"opened","issue":{"url":"https://api.github.com/repos/bpmn-io/bpmn-js/issues/595","repository_url":"https://api.github.com/repos/bpmn-io/bpmn-js","labels_url":"https://api.github.com/repos/bpmn-io/bpmn-js/issues/595/labels{/name}","comments_url":"https://api.github.com/repos/bpmn-io/bpmn-js/issues/595/comments","events_url":"https://api.github.com/repos/bpmn-io/bpmn-js/issues/595/events","html_url":"https://github.com/bpmn-io/bpmn-js/issues/595","id":166692873,"number":595,"title":"Trying to add a point to a SequenceFlow may break editing if zoom level != 100%","user":{"login":"var-const","id":8216808,"avatar_url":"https://avatars.githubusercontent.com/u/8216808?v=3","gravatar_id":"","url":"https://api.github.com/users/var-const","html_url":"https://github.com/var-const","followers_url":"https://api.github.com/users/var-const/followers","following_url":"https://api.github.com/users/var-const/following{/other_user}","gists_url":"https://api.github.com/users/var-const/gists{/gist_id}","starred_url":"https://api.github.com/users/var-const/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/var-const/subscriptions","organizations_url":"https://api.github.com/users/var-const/orgs","repos_url":"https://api.github.com/users/var-const/repos","events_url":"https://api.github.com/users/var-const/events{/privacy}","received_events_url":"https://api.github.com/users/var-const/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-20T22:02:22Z","updated_at":"2016-07-20T22:02:22Z","closed_at":null,"body":"Reproduction steps:\r\n1. Open demo.bpmn.io/new\r\n2. Add a Task to the diagram.\r\n3. Add a Gateway to the diagram. Position it to the right of the Task so that their centers are aligned horizontally (see screenshots).\r\n4. Zoom out several steps.\r\n5. Zoom in step by step, each time clicking on the Gateway and checking if the pad (context menu) appears (it doesn't appear under certain zoom levels, which is another bug). The new zoom level must be smaller than 100%.\r\n6. From the pad, add a SequenceFlow from the Gateway to the Task. Connect it to the upper-right part of the Task, so that the resulting SequenceFlow has a bend point (see screenshots).\r\n7. Try moving that bend point up.\r\n\r\nResult:\r\nAfter releasing the mouse button, the bend point continues to move with the cursor. Sometimes it is \"released\" after making several mouse clicks, but after that editing diagram doesn't work correctly and produces weird glitches (see last screenshot). There is an error message in console: \"app.min.js:5 Uncaught Error: expected between [1, 2] circle -> line intersections\".\r\n\r\nI would speculate that this may be a floating point issue.\r\n\r\nNote 1: the reproduction rate is not 100%, but it's not very hard to reproduce using these steps, either.\r\n\r\nNote 2: this bug appears under many circumstances, it's just the most reliable set of reproduction steps that I was able to come up with."}}
{"actor":{"display_login":"var-const"}}