H scroll activating sticky layer problem

I want to remap the left H scroll and right H scroll to different layers with different drag scroll speeds, but it seems to remap only to the layer with the faster scrolling. When I remap the H scroll to different keystrokes, it works fine, but not with the different layers.

With how it currently works you’d have to use expressions, for example:

0x000c0238 input_state 0 lt
1 recall not
1 recall
ifte
1 store

0x000c0238 input_state 0 gt
2 recall not
2 recall
ifte
2 store

and map Register 1 to Layer 1 and Register 2 to Layer 2:

This will toggle them independently, meaning both layers can be active at the same time and activating one does not deactivate the other, which might not be what you want.

Here’s an expression that will deactivate Layer 1 when Layer 2 is activated and vice versa:

0x000c0238 input_state 0 lt
1 recall not
1 recall
ifte
1 store

2 recall 1 recall not mul 2 store

0x000c0238 input_state 0 gt
2 recall not
2 recall
ifte
2 store

1 recall 2 recall not mul 1 store