juzzlin / Heimer

Heimer is a simple cross-platform mind map, diagram, and note-taking tool written in Qt.
GNU General Public License v3.0
889 stars 112 forks source link

[Bug] Inexact node selection #143

Closed l3td33r closed 3 years ago

l3td33r commented 3 years ago

Sometimes if we want to click a node we can't, and the opposite.

I have noticed at least three cases:

juzzlin commented 3 years ago

Thanks for reporting!

Some of those issues happen because the "node handles" are not individual objects in the scene. Should be changed this way.

juzzlin commented 3 years ago

Connecting nodes by dragging made easier in e08c65381f2dd2d22499b5f2e426c7ddc4ca21ab.

l3td33r commented 3 years ago

Nice, thank you for your work!

But a new problem appeared - it's harder to create new children nodes - because they connect with the adjacent nodes, instead of creating a new one. For example it is not possible to create the children node in the middle of these:

2021-03-13_14-14-21

Some of those issues happen because the "node handles" are not individual objects in the scene. Should be changed this way.

Guess that's the way then :P and then calculating the correct overlap score using the proper node positions

juzzlin commented 3 years ago

I got this almost implemented - just run into some unexpected problems (who would have guessed!) :)

juzzlin commented 3 years ago

Fixed in b8a177a99eba774092a71e1e6218dec0d8d28b87.

There shouldn't be anymore issues with invisible borders.

l3td33r commented 3 years ago

Yup! Selection works better now, except I have noticed one issue:

juzzlin commented 3 years ago

It connects if the semi-transparent drag node touches the target node. It has always been like this but the threshold was different so it allowed more overlap. Maybe it should be based on cursor position only..

I also noticed some small problems later so I need to fine tune this still a bit ☺️