Skip to content

fix: Mouse click on FluentMultiSplitter bar changes position #2217

@emetrix

Description

@emetrix

🐛 Bug Report

When I do a left (mouse) click on the resize bar of a two pane FluentMultiSplitter the resize bar changes its position.

💻 Repro or Code Sample

MainLayout.razor:

<FluentLayout>
    <FluentHeader>
        BlazorApp
    </FluentHeader>
        <FluentStack Class="main" Orientation="Microsoft.FluentUI.AspNetCore.Components.Orientation.Horizontal" Width="100%">
            <FluentMultiSplitter BarSize="8px">

                <FluentMultiSplitterPane Size="250px" Resizable="true">
                  <NavMenu /> 
                </FluentMultiSplitterPane>

                <FluentMultiSplitterPane >
                    <FluentBodyContent Class="body-content">
                        <div class="content">
                            @Body
                        </div>
                    </FluentBodyContent>
                </FluentMultiSplitterPane>

            </FluentMultiSplitter>
        </FluentStack>
    <FluentFooter>
        <a href="https://www.fluentui-blazor.net" target="_blank">Documentation and demos</a>
        <FluentSpacer />
        <a href="https://learn.microsoft.com/en-us/aspnet/core/blazor" target="_blank">About Blazor</a>
    </FluentFooter>
</FluentLayout>

🤔 Expected Behavior

A mouse click on the resize bar should not change its position

😯 Current Behavior

see bug report description

💁 Possible Solution

🔦 Context

FluentMultiSplitter-Bar.mp4

🌍 Your Environment

  • OS: Windows 11 & Device: PC
  • Browser: Microsoft Edge
  • .NET 8.0.6 and Fluent UI Blazor library Version 4.8.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    triageNew issue. Needs to be looked at

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions