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

[Bug] Nodes cannot be moved with the mouse in version 7.0.0 #199

Open
shiguHa opened this issue Jan 10, 2025 · 3 comments
Open

[Bug] Nodes cannot be moved with the mouse in version 7.0.0 #199

shiguHa opened this issue Jan 10, 2025 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@shiguHa
Copy link

shiguHa commented Jan 10, 2025

Describe the bug
When using version 7.0.0 nodes cannot be moved with the mouse. This issue does not occur in version 6.6.0, where nodes can be moved as expected.

To Reproduce

  1. Add version 7.0.0 of the Nodeify library to your WPF .Net8 project. (not installed other libraries)
  2. Use the following XAML code to place a NodifyEditor and so.

https://github.com/miroiu/nodify/wiki/Nodes-Overview

<Window x:Class="LeanNodify.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:LeanNodify"
        xmlns:nodify="clr-namespace:Nodify;assembly=Nodify"
        mc:Ignorable="d"
        Title="MainWindow" Height="450" Width="800">
    <Grid>
        <nodify:NodifyEditor>
            <nodify:NodifyEditor.ItemsSource>
                <CompositeCollection>
                    <nodify:StateNode Content="My node" />
                </CompositeCollection>
            </nodify:NodifyEditor.ItemsSource>
        </nodify:NodifyEditor>
    </Grid>
</Window>
  1. Run the application and try to drag the node with the mouse.

Expected behavior
The node should be draggable and movable with the mouse.

Additional context

This issue does not occur in version 6.6.0, where nodes can be moved as expected.

Environment

  • Nodify Version: 7.0.0
  • Windows11 Home
  • VisualStudio2022
  • .NET Version: 8
@shiguHa shiguHa added the bug Something isn't working label Jan 10, 2025
@jpk6789
Copy link
Contributor

jpk6789 commented Jan 10, 2025

Hi,

I tested this what you said and I can not reproduce your problems. I created a new .Net8.0 project, added Nodify 7.0.0, copied your code and let it run on the same type of system you mentioned (Win 11, Visual Studio 2022) and it worked as expected. See the attached video:

2025-01-10.17-28-07.mp4

Are there maybe other circumstances, which lead to this behavior?

@miroiu
Copy link
Owner

miroiu commented Jan 10, 2025

I tested the same thing and could not reproduce it. Did you customize any gesture or did you change the NodifyEditor.MouseActionSuppressionThreshold?

@shiguHa
Copy link
Author

shiguHa commented Jan 11, 2025

Thank you for your swift response and tested!!

See the attached video.
I created a new .Net8.0 project, added Nodify 7.0.0.
I change it to version 6.6.0 it works as expected.

IssueNodifyMove2025-01-11.mp4

I tested the same thing and could not reproduce it. Did you customize any gesture or did you change the NodifyEditor.MouseActionSuppressionThreshold?

Not custmize any gesture and not change the NodifyEditor.MouseActionSuppressionThreshold

Has the operation method changed in ver7.0.0 from ver6.6.0?
Just left-click and drag the mouse on the node, right?

If there is anything I can do please say so!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants