fluentribbon / Fluent.Ribbon

WPF Ribbon control like in Office
http://fluentribbon.github.io
MIT License
2.55k stars 516 forks source link

Touchpad tap does not select GalleryItem, click does #796

Open korneliuscode opened 4 years ago

korneliuscode commented 4 years ago

Hi, I got the following DropDownButton in my Ribbon. If I just "tap" an item it does not get selected, if I click (hard press the touchpad button) it gets selected. This is the first time I experience a different in behavior of tap and click. Same thing happens on the MenuItem within that DropDownButton.

<Fluent:DropDownButton Header="Filter" SizeDefinition="Middle,Small" ClosePopupOnMouseDown="True" Icon="Filter.png" LargeIcon="Filter.png">
    <Fluent:Gallery ItemsSource="{Binding FilterViewModel.Years}" SelectedItem="{Binding FilterViewModel.FilterYear}" MaxItemsInRow="2" Selectable="True" Width="160">
        <Fluent:Gallery.ItemTemplate>
            <DataTemplate>
                <TextBlock HorizontalAlignment="Left" VerticalAlignment="Center" Text="{Binding StringFormat=\{0\}}" Width="75" />
            </DataTemplate>
        </Fluent:Gallery.ItemTemplate>
    </Fluent:Gallery>
    <MenuItem Header="{x:Static res:Resources.All}" Tag="year" Click="btnAllFilter_Click" />
</Fluent:DropDownButton>

Environment

batzen commented 4 years ago

I don't have a touchscreen so this might be difficult to reproduce and fix. Will have a look at what i can do here.

korneliuscode commented 4 years ago

It is not related to a touchscreen, it happens to me on a touchpad (Dell laptop).

batzen commented 4 years ago

Ah, i misread your text. Will try to reproduce then.

korneliuscode commented 11 months ago

Would be great if that came up at some point :)

korneliuscode commented 6 months ago

Were you able to reproduce it? I still face the issue on a Surface Pro.

batzen commented 6 months ago

Can't reproduce when using the touchpad on my work laptop. Could you try to use Snoop, use the events tab and check which mouse/touch events get listed when doing a tap?