# Button only works about 50% of the time

**URL:** https://forums.fusetools.com/t/button-only-works-about-50-of-the-time/6801
**Category:** General
**Created:** [February 21, 2018, 11:19pm UTC](https://forums.fusetools.com/t/button-only-works-about-50-of-the-time/6801 "2018-02-21T23:19:33Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Caleb\_Strong](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/caleb_strong/32/515_2.png) [@Caleb\_Strong](https://forums.fusetools.com/u/Caleb_Strong)
#### Post date: [February 21, 2018, 11:19pm UTC](https://forums.fusetools.com/t/button-only-works-about-50-of-the-time/6801/1 "2018-02-21T23:19:33Z")

</div>

So random thing, I have a custom button that links to a page of information in my app, I have 5 of these buttons. But they only work every couple of clicks, not every time, and idk why. Here is the base component.

```auto
<Panel ux:Class="SASi.CircleButton" Margin="10" Padding="10" FontSize="20">
	<string ux:Property="Text" />
	<float ux:Property="FontSize" />

	<Circle Width="40" Height="40" >
		<Stroke Width="3">
        	<SolidColor Color="#124F63" />
    	</Stroke>
	</Circle>

	<SASi.Text Value="?" FontSize="{ReadProperty FontSize}" Alignment="Center" />

	<WhilePressed>
		<Scale Factor=".95" Duration=".08" Easing="QuadraticOut" />
	</WhilePressed>
</Panel>

```

And I set each button like this (within a grid, and other buttons/text components).

```auto
<SASi.CircleButton ColumnSpan="1" Clicked="{tripInfo}" />

```

Any clear reason why? Do you want to see the full UX page?

---

<div class="post-metadata">

### Author: ![Uldis](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/uldis/32/657_2.png) [@Uldis](https://forums.fusetools.com/u/Uldis)
#### Post date: [February 22, 2018, 7:13am UTC](https://forums.fusetools.com/t/button-only-works-about-50-of-the-time/6801/2 "2018-02-22T07:13:29Z")

</div>

Of course we would like to see complete, minimal reproductions that we can copy-paste and run. That way, it’s much easier to actually _see_ the problem.

Just a wild guess though: [HitTestMode](https://www.fusetools.com/docs/fuse/elements/hittestmode)? You should check if adding `HitTestMode="LocalBounds"` or `HitTestMode="LocalBoundsAndChildren"` to the button component fixes the issue:

```auto
<Panel ux:Class="SASi.CircleButton" Margin="10" Padding="10" FontSize="20" HitTestMode="LocalBounds">
...

```

---

<div class="post-metadata">

### Author: ![Caleb\_Strong](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/caleb_strong/32/515_2.png) [@Caleb\_Strong](https://forums.fusetools.com/u/Caleb_Strong)
#### Post date: [February 23, 2018, 9:13pm UTC](https://forums.fusetools.com/t/button-only-works-about-50-of-the-time/6801/3 "2018-02-23T21:13:04Z")

</div>

Thanks Uldis, that worked. Easy fix haha.
