It is currently September 28th, 2020, 11:09 am

[Bug] Strange mouseover behavior

Report bugs with the Rainmeter application and suggest features.
User avatar
Cariboudjan
Posts: 93
Joined: May 12th, 2019, 8:55 am

[Bug] Strange mouseover behavior

Post by Cariboudjan »

I noticed this behavior recently. MouseOverAction/MouseLeaveAction flickers when the skin and cursor is placed/dragged along the edge of the screen.


Code: Select all

[Rainmeter]

[Variables]
Distance=20

[Meter1]
Meter=Image
SolidColor=255,0,0
W=100
H=100
MouseOverAction=[!SetOption #CURRENTSECTION# SolidColor "0,255,0"][!UpdateMeter #CURRENTSECTION#][!Redraw]
MouseLeaveAction=[!SetOption #CURRENTSECTION# SolidColor "255,0,0"][!UpdateMeter #CURRENTSECTION#][!Redraw]

[Meter2]
Meter=Image
SolidColor=255,0,0
X=#Distance#R
W=100
H=100
MouseOverAction=[!SetOption #CURRENTSECTION# SolidColor "0,255,0"][!UpdateMeter #CURRENTSECTION#][!Redraw]
MouseLeaveAction=[!SetOption #CURRENTSECTION# SolidColor "255,0,0"][!UpdateMeter #CURRENTSECTION#][!Redraw]

[Meter3]
Meter=Image
SolidColor=255,0,0
X=#Distance#R
W=100
H=100
MouseOverAction=[!SetOption #CURRENTSECTION# SolidColor "0,255,0"][!UpdateMeter #CURRENTSECTION#][!Redraw]
MouseLeaveAction=[!SetOption #CURRENTSECTION# SolidColor "255,0,0"][!UpdateMeter #CURRENTSECTION#][!Redraw]

[Meter4]
Meter=Image
SolidColor=255,0,0
X=#Distance#R
W=100
H=100
MouseOverAction=[!SetOption #CURRENTSECTION# SolidColor "0,255,0"][!UpdateMeter #CURRENTSECTION#][!Redraw]
MouseLeaveAction=[!SetOption #CURRENTSECTION# SolidColor "255,0,0"][!UpdateMeter #CURRENTSECTION#][!Redraw]

[Meter5]
Meter=Image
SolidColor=255,0,0
X=#Distance#R
W=100
H=100
MouseOverAction=[!SetOption #CURRENTSECTION# SolidColor "0,255,0"][!UpdateMeter #CURRENTSECTION#][!Redraw]
MouseLeaveAction=[!SetOption #CURRENTSECTION# SolidColor "255,0,0"][!UpdateMeter #CURRENTSECTION#][!Redraw]
User avatar
eclectic-tech
Rainmeter Sage
Posts: 4122
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: [Bug] Strange mouseover behavior

Post by eclectic-tech »

I can not duplicate your issue on my system.

I used your code, tried with (and without) Hardware Acceleration, different screen resolutions, different skin positions (very top included), and the skin always responded properly.

EDIT:
I believe you have a transparent skin along the top edge of your screen that is interfering with the mouse detection of your test skin.
Unload all skins, except this test skin, and see if your problem disappears.

If you are running on older Intel integrated graphics and turn "on" hardware acceleration, there is a known issue with D2D and hardware acceleration. If so, attempt to update to the latest drivers for your chipset from Intel. That will solve the problem in many cases. Failing that, turn off hardware acceleration in the Settings dialog in Rainmeter.

Other than that I can not see your issue, so I can't make any other suggestion. :uhuh:
User avatar
Cariboudjan
Posts: 93
Joined: May 12th, 2019, 8:55 am

Re: [Bug] Strange mouseover behavior

Post by Cariboudjan »

Interestingly, I've now noticed that the problem stops when I reduce the resolution from 2560x1440 at 125% DPI to a lower DPI or a lower resolution. The two combined seem to cause the issue. I'm not sure why. Updating my graphics card settings now. I also updated Windows 10 recently. We'll see if that helps.
User avatar
Cariboudjan
Posts: 93
Joined: May 12th, 2019, 8:55 am

Re: [Bug] Strange mouseover behavior

Post by Cariboudjan »

eclectic-tech wrote: November 21st, 2019, 4:09 am EDIT:
I believe you have a transparent skin along the top edge of your screen that is interfering with the mouse detection of your test skin.
Unload all skins, except this test skin, and see if your problem disappears.
This is the only skin running when demoing in the video, though. :( I wish it were that simple.

Also the problem doesn't occur when Override High DPI Scaling Behavior is turned on, but does occur when it is off (Default setting).
User avatar
balala
Rainmeter Sage
Posts: 11426
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: [Bug] Strange mouseover behavior

Post by balala »

eclectic-tech wrote: November 21st, 2019, 4:09 am Other than that I can not see your issue, so I can't make any other suggestion. :uhuh:
Agree. No such issue at all here.
User avatar
Cariboudjan
Posts: 93
Joined: May 12th, 2019, 8:55 am

Re: [Bug] Strange mouseover behavior

Post by Cariboudjan »

balala wrote: November 21st, 2019, 4:36 pm Agree. No such issue at all here.
Did you try with a 2560x1440 monitor? Because this issue doesn't seem to occur at 1920x1080.

Resolution: 2560x1440
DPI scaling: 125%
Override DPI scaling: Off
User avatar
balala
Rainmeter Sage
Posts: 11426
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: [Bug] Strange mouseover behavior

Post by balala »

Cariboudjan wrote: April 9th, 2020, 4:51 am Did you try with a 2560x1440 monitor? Because this issue doesn't seem to occur at 1920x1080.
No and won't even try, because I have no such a monitor. Sorry...
User avatar
Active Colors
Moderator
Posts: 612
Joined: February 16th, 2012, 3:32 am

Re: [Bug] Strange mouseover behavior

Post by Active Colors »

Cariboudjan wrote: April 9th, 2020, 4:51 am Did you try with a 2560x1440 monitor? Because this issue doesn't seem to occur at 1920x1080.

Resolution: 2560x1440
DPI scaling: 125%
Override DPI scaling: Off
I suspect it is due to your DPI scaling. Since on 100% the size of one pixel of your skin is 1px, with 125% it becomes 1.25px, which I assume causes missdetection every second pixel or so. Anyway, just my guess. Does it happen when you set DPI scaling to 100% ?
User avatar
Cariboudjan
Posts: 93
Joined: May 12th, 2019, 8:55 am

Re: [Bug] Strange mouseover behavior

Post by Cariboudjan »

Active Colors wrote: April 9th, 2020, 10:51 am I suspect it is due to your DPI scaling. Since on 100% the size of one pixel of your skin is 1px, with 125% it becomes 1.25px, which I assume causes missdetection every second pixel or so. Anyway, just my guess. Does it happen when you set DPI scaling to 100% ?
It does not happen at 100%, no. However on higher resolutions like 1440p and up having anything below 125% is not a good experience.

Is there anything that can be done to mitigate this issue?
User avatar
Yincognito
Posts: 2638
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

Re: [Bug] Strange mouseover behavior

Post by Yincognito »

Cariboudjan wrote: April 10th, 2020, 12:29 am It does not happen at 100%, no. However on higher resolutions like 1440p and up having anything below 125% is not a good experience.

Is there anything that can be done to mitigate this issue?
Maybe this would help (if you don't know about it already, of course). The first 2 posts there are key (might be something useful to get from the following ones though).

EDIT: Just saw that you posted there as well. My bad, you're apparently familiar with all this. :oops: