-
February 22nd, 2018, 03:45 #1
Request For Coding Help - Button Moves On Mouse Wheel
Hi Guys,
I've got a funny one (which usueally means I'm doing something wrong ):
I've added the following buttoncontrol to the ModifierStack. The button doesn't do anything at the moment (no onclick code - yet) and there is no extra code added anywhere to anything else. I've noticed that when I roll the mouse wheel (up or down) the new button progressively moves to the right - and I can't work out why (& therefore can't work out how to stop it).
This is on a "plain-vanilla" CoreRPG v3.3.4 installation. Any ideas?
Code:<windowclass name="modifierstack" merge="join"> <sheetdata> <buttoncontrol name="TestButton" merge="add"> <anchored position="insidetopright" offset="-11,2" width="15" height="15" /> <state icon="tool_down_30" color="FFFFFFFF" frame="mini_name" frameoffset="2,2,2,2" tooltipres="sTestButtonDownTooltip" /> <state icon="tool_up_30" color="FFFFFFFF" frame="mini_name" frameoffset="2,2,2,2" tooltipres="sTestButtonUpTooltip" /> <default>1</default> </buttoncontrol> </sheetdata> </windowclass>
Last edited by dulux-oz; February 22nd, 2018 at 06:38.
Dulux-Oz
√(-1) 2^3 Σ Π
...And it was Delicious!
Alpha-Geek
ICT Professional
GMing Since 1982
NSW, Australia, UTC +10
LinkedIn Profile: www.linkedin.com/in/mjblack
Watch our games on Twitch: www.twitch.tv/dulux_oz
Support Me on Patreon: www.patreon.com/duluxoz
Past Games, etc, on my YouTube Channel: www.youtube.com/c/duluxoz
-
February 22nd, 2018, 04:25 #2
Its likely its something in the modifierstack windowclass or the TestButton buttoncontrol defined in their respective definitions...?
-
February 22nd, 2018, 04:29 #3
Dulux-Oz
√(-1) 2^3 Σ Π
...And it was Delicious!
Alpha-Geek
ICT Professional
GMing Since 1982
NSW, Australia, UTC +10
LinkedIn Profile: www.linkedin.com/in/mjblack
Watch our games on Twitch: www.twitch.tv/dulux_oz
Support Me on Patreon: www.patreon.com/duluxoz
Past Games, etc, on my YouTube Channel: www.youtube.com/c/duluxoz
-
February 22nd, 2018, 04:41 #4
Why do you use merge="add" if that is the first time you are defining it?
-
February 22nd, 2018, 05:15 #5
Dulux-Oz
√(-1) 2^3 Σ Π
...And it was Delicious!
Alpha-Geek
ICT Professional
GMing Since 1982
NSW, Australia, UTC +10
LinkedIn Profile: www.linkedin.com/in/mjblack
Watch our games on Twitch: www.twitch.tv/dulux_oz
Support Me on Patreon: www.patreon.com/duluxoz
Past Games, etc, on my YouTube Channel: www.youtube.com/c/duluxoz
-
February 22nd, 2018, 05:34 #6
I can replicate the issue.
On a 1920wide desktop it moves 22px on a 1026w desktop it moves 33px.
How very bizarre...
-
February 22nd, 2018, 06:20 #7
Dulux-Oz
√(-1) 2^3 Σ Π
...And it was Delicious!
Alpha-Geek
ICT Professional
GMing Since 1982
NSW, Australia, UTC +10
LinkedIn Profile: www.linkedin.com/in/mjblack
Watch our games on Twitch: www.twitch.tv/dulux_oz
Support Me on Patreon: www.patreon.com/duluxoz
Past Games, etc, on my YouTube Channel: www.youtube.com/c/duluxoz
-
February 22nd, 2018, 07:14 #8
Not that I have any idea on the coding side, but I've seen what might be similar effects in other programs interacting with the mouse wheel. i.e. that sometimes in some programs when you scroll the mouse wheel the window actually pans left/right. I've seen this behavior change when you change the settings in the mouse control panel. Usually when you change the scroll wheel from "Auto Scroll" to something like "middle mouse button" or "zoom" etc.
Don't have any idea if that change in behavior based on mouse settings could be replicated in this case, or if it does if it even helps. But, maybe it will or it will spawn some constructive thoughts in one of your minds
Problems? See; How to Report Issues, Bugs & Problems
On Licensing & Distributing Community Content
Community Contributions: Gemstones, 5E Quick Ref Decal, Adventure Module Creation, Dungeon Trinkets, Balance Disturbed, Dungeon Room Descriptions
Note, I am not a SmiteWorks employee or representative, I'm just a user like you.
-
February 22nd, 2018, 14:52 #9
I'd recommend searching for onWheel event handlers related to the modifier stack then tracing/debugging the code/process related to that.
Private Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!
-
February 22nd, 2018, 14:58 #10
Yeap, done that - the only onWheel relates to the value of the mod in the modstack - i can not locate any relationship between that value and the right anchor of the button.
In fact, there is no relationship to ANYTHING and the right anchor of the button - at lease not that I can find by going through the (exposed) code line by line.
It also seems to occur when the mod in the modstack gains & loses focus - but only after the mod's onWheel event has been fired.
It really is quite bizzarDulux-Oz
√(-1) 2^3 Σ Π
...And it was Delicious!
Alpha-Geek
ICT Professional
GMing Since 1982
NSW, Australia, UTC +10
LinkedIn Profile: www.linkedin.com/in/mjblack
Watch our games on Twitch: www.twitch.tv/dulux_oz
Support Me on Patreon: www.patreon.com/duluxoz
Past Games, etc, on my YouTube Channel: www.youtube.com/c/duluxoz
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks