Uno: Wasm - add support for mouse over effects

Created on 5 Jul 2019  Â·  5Comments  Â·  Source: unoplatform/uno

What would you like to be added:

Mouse over effects in wasm

Why is this needed:

Provide user feedback

For which Platform:

  • [ ] iOS
  • [ ] Android
  • [x] WebAssembly
  • [ ] Windows

Anything else we need to know?

Take the template app, add a button to the mainpage and note that in UWP when the mouse moves over the button, the border changes colour. Do the same in wasm and there is no visual feedback. Its cosmetic, but makes demos look nicer and helps overcome user resistance to new technologies.

MainPage.xaml:

<Page
    x:Class="UnoMouseOver.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:UnoMouseOver"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">

    <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
      <Button>dafdf</Button>
    </Grid>
</Page>
kinenhancement platforwasm

Most helpful comment

This requires https://github.com/unoplatform/uno/pull/1256, I'll includes those states as part of the PR

All 5 comments

Do you want to take a stab at implementing this @yowl? Let us know if you need any guidance/help.

I can have a go, but I'm not an artist. Can we lift the storyboards from somewere?

👋 got your email @yowl — leave it with us.

observations

Alright so this is what I see:

uwp

When the pointer hovers over a button the visual state is updated.

8E44ED16-B87A-45B6-9878-4BF846228719

webasm

When the pointer hovers over a button the visual state is not updated.

droid

n/a - touch screen device doesn't have hovering (yes, android can support mice but let's ignore this edge case for now)

osx

n/a - touch screen device doesn't have hovering.

This requires https://github.com/unoplatform/uno/pull/1256, I'll includes those states as part of the PR

This has been fixed by https://github.com/unoplatform/uno/pull/1256 (for WASM and Android)

I'm closing the issue, feel free to re-open it if there is any issue.

Was this page helpful?
0 / 5 - 0 ratings