# Macros involving mouse scroll buttons not working

**URL:** <https://community.keyboard.io/t/macros-involving-mouse-scroll-buttons-not-working/3843>\
**Category:** Help and Getting Started\
**Created:** [May 7, 2020, 2:34am UTC](https://community.keyboard.io/t/macros-involving-mouse-scroll-buttons-not-working/3843 "2020-05-07T02:34:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jamadagni](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.keyboard.io/jamadagni/32/2030_2.png) [@jamadagni](https://community.keyboard.io/u/jamadagni)\
**Post date:** [May 7, 2020, 2:34am UTC](https://community.keyboard.io/t/macros-involving-mouse-scroll-buttons-not-working/3843/1 "2020-05-07T02:34:34Z")

</div>

Hello. After quite some time, I did a `git pull` on my local **Kaleidoscope-Bundle-Keyboardio** repo and came up to **a08e055cd819813ece042759be55b61b37388495**.

Now I find that macros involving mouse scroll buttons are not working. I have four:

```auto
    case M_ZOOM_IN:
        return MACRODOWN(D(LeftControl), T(mouseScrollUp), U(LeftControl));

    case M_ZOOM_OUT:
        return MACRODOWN(D(LeftControl), T(mouseScrollDn), U(LeftControl));

    case M_WHEEL_LEFT:
        return MACRODOWN(D(LeftShift), T(mouseScrollUp), U(LeftShift));

    case M_WHEEL_RIGHT:
        return MACRODOWN(D(LeftShift), T(mouseScrollDn), U(LeftShift));

```

None of these are working. I have separate keys for `mouseScrollUp` and `mouseScrollDn` and using them along with pressing the modifiers manually works just fine. So it’s just the macros.

Any help would be appreciated. Thanks.

---

<div class="post-metadata">

**Author:** ![rumpel](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.keyboard.io/rumpel/32/626_2.png) [@rumpel](https://community.keyboard.io/u/rumpel)\
**Post date:** [February 17, 2022, 8:01am UTC](https://community.keyboard.io/t/macros-involving-mouse-scroll-buttons-not-working/3843/2 "2022-02-17T08:01:07Z")

</div>

I’m trying to implement the same thing (M\_ZOOM\_IN/OUT) with the latest Kaleidoscope firmware. Did you ever solve the issue?

---

<div class="post-metadata">

**Author:** ![merlin](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.keyboard.io/merlin/32/3416_2.png) [@merlin](https://community.keyboard.io/u/merlin)\
**Post date:** [February 17, 2022, 4:37pm UTC](https://community.keyboard.io/t/macros-involving-mouse-scroll-buttons-not-working/3843/3 "2022-02-17T16:37:46Z")

</div>

I’m working on a solution to this problem. The issue now is that MouseKeys doesn’t know about Macros’ virtual key array, and does all of its work in the `afterEachCycle()` handler. I have several ideas for a solution, but it’s not yet clear which one is best. I’m leaning towards having MouseKeys depend on Macros. Feel free to submit this as an issue on GitHub. I probably won’t have time to do so today.

---

<div class="post-metadata">

**Author:** ![merlin](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.keyboard.io/merlin/32/3416_2.png) [@merlin](https://community.keyboard.io/u/merlin)\
**Post date:** [February 21, 2022, 5:13pm UTC](https://community.keyboard.io/t/macros-involving-mouse-scroll-buttons-not-working/3843/4 "2022-02-21T17:13:16Z")

</div>

[PR #1114](https://github.com/keyboardio/Kaleidoscope/pull/1114) should fix this bug.
