Prevent margin clicks from going to the parent node #151
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Thank you for this great library! When using version 1.2.9 of it I noted that clicks in the indentation area of child nodes go to the parent node, normally collapsing it. I found this behavior not correct, so in commit 68a5d1c I changed the code to attach the handlers to the nodeView instead of the nodeWrapperView. I found it easiest to achieve this by using two additional methods in BaseNodeViewHolder, but there might be better ways to achieve the same result.
In my second commit ac5b9a7 I corrected a typo in one of your method names. Feel free to ignore it if it breaks compatibility with existing code too much.