# Is “repeat“ mousebutton action implemented in Makie?

**URL:** https://discourse.julialang.org/t/is-repeat-mousebutton-action-implemented-in-makie/111647
**Category:** Visualization
**Tags:** glmakie
**Created:** [March 15, 2024, 7:42am UTC](https://discourse.julialang.org/t/is-repeat-mousebutton-action-implemented-in-makie/111647 "2024-03-15T07:42:20Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![oniehuis](https://avatars.discourse-cdn.com/v4/letter/o/ecc23a/32.png) [@oniehuis](https://discourse.julialang.org/u/oniehuis)
#### Post date: [March 15, 2024, 7:42am UTC](https://discourse.julialang.org/t/is-repeat-mousebutton-action-implemented-in-makie/111647/1 "2024-03-15T07:42:20Z")

</div>

I got a bit confused by one of the examples provided on the Makie web page on events ([Events · Makie](https://docs.makie.org/stable/explanations/events/)). In the code example that illustrates the implementation of dragging a point, one of the conditions checks whether the mousebutton.action is equal to Mouse.repeat. I was unable to find any more information about this particular state, and I was unable to actually get mousebutton.action to ever hold this value with the following code when running Julia v1.10.2 and GLMakie v0.9.9:

```julia
using GLMakie

f = Figure()
ax = Axis(f[1, 1])
display(f)

deregister_interaction!(ax, :rectanglezoom)
deregister_interaction!(ax, :dragpan)
deregister_interaction!(ax, :scrollzoom)

on(events(f).mousebutton) do event
    println(event.action)
end

```

Am I doing something wrong or is a repeat state current not implemented? If the latter, will it be implemented in the future or is the example code provided on the Makie webpage outdated?

---

<div class="post-metadata">

### Author: ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://discourse.julialang.org/u/jules)
#### Post date: [March 16, 2024, 9:29pm UTC](https://discourse.julialang.org/t/is-repeat-mousebutton-action-implemented-in-makie/111647/2 "2024-03-16T21:29:33Z")

</div>

Looks like a typo to me, an upper example has similar code with `release` instead of `repeat` and to my knowledge only keyboard presses have a repeat state, but not the mouse. Does Mouse.repeat actually exist? If so, you could check glfw for it

---

<div class="post-metadata">

### Author: ![oniehuis](https://avatars.discourse-cdn.com/v4/letter/o/ecc23a/32.png) [@oniehuis](https://discourse.julialang.org/u/oniehuis)
#### Post date: [March 18, 2024, 9:15am UTC](https://discourse.julialang.org/t/is-repeat-mousebutton-action-implemented-in-makie/111647/3 "2024-03-18T09:15:02Z")

</div>

Thanks for your feedback. I do not think it is a typo per se, because the code does not work properly if you write release instead of repeat. But the code examples work fine if the mousebutton.action == Mouse.repeat conditions are removed entirely, as they seem to have no effect. I have opened an issue.
