Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix widgets hovering in library UI when DPI is not 100 #1107

Merged
merged 2 commits into from Nov 21, 2023

Conversation

HollowMan6
Copy link
Collaborator

@HollowMan6 HollowMan6 commented Nov 20, 2023

The issue mentioned in PR #1106 is not caused by #1105, but rather #1086 (comment)

This commit adds an exception to the library UI so that we make sure we are actually on the web page when we reset the scale to 1 for motion event handling.

@felipeerias
Copy link
Contributor

Thank you very much. The fix looks good to me but let's wait for more feedback before merging it.

Copy link
Member

@svillar svillar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do not include the relanding of @felipeerias's patch, we'll use another PR for that.

I'm going to give it a go, but I'm concerned to have this code with an exception to an exception. My guts are telling me that something else is wrong and that we should handle it differently. In any case, on the event of problems we can always revert these two withouth much trouble so we should be safe.

@HollowMan6
Copy link
Collaborator Author

I'm going to give it a go, but I'm concerned to have this code with an exception to an exception. My guts are telling me that something else is wrong and that we should handle it differently.

Actually, although the code looks like we are making an exception to an exception, the only exception we have to make in fact is that, we don't need to divide the scale factor when we pass the motion event to gecko. I don't know if there's any other simple and good way to have this one but it's the way I can think of.

The issue mentioned in #1106 is not caused by #1105, but rather
#1086 (comment)

This commit adds an exception to the library UI so that we
make sure we are actually in the web page when we reset the
scale to 1 for motion event handling.

Signed-off-by: Songlin Jiang <sjiang@igalia.com>
Copy link
Member

@svillar svillar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the quick fix!

@HollowMan6 HollowMan6 merged commit b92ea92 into main Nov 21, 2023
18 checks passed
@HollowMan6 HollowMan6 deleted the felipeerias/viewportMetrics branch November 21, 2023 10:22
felipeerias added a commit that referenced this pull request Nov 21, 2023
Adjust the default DPI that we pass to the Web engine so that the texture
for the default window will have twice the resolution.

Adjust the default density so that the default window has a logical size
of 1024x576 CSS pixels.

Set the size of the maximum window so that its associated texture fits
within 2560x2560, which is the maximum in some systems.

The window scaling will interpolate between the default and maximum values.

This commit needed to be reverted because it clashed with recent changes
related to motion event handling. See:
  #1106
  #1107
HollowMan6 added a commit that referenced this pull request Nov 21, 2023
b92ea92

Signed-off-by: Songlin Jiang <sjiang@igalia.com>
felipeerias added a commit that referenced this pull request Nov 21, 2023
Adjust the default DPI that we pass to the Web engine so that the texture
for the default window will have twice the resolution.

Adjust the default density so that the default window has a logical size
of 1024x576 CSS pixels.

Set the size of the maximum window so that its associated texture fits
within 2560x2560, which is the maximum in some systems.

The window scaling will interpolate between the default and maximum values.

This commit needed to be reverted because it clashed with recent changes
related to motion event handling. See:
  #1105
  #1106
  #1107
svillar pushed a commit that referenced this pull request Nov 21, 2023
Adjust the default DPI that we pass to the Web engine so that the texture
for the default window will have twice the resolution.

Adjust the default density so that the default window has a logical size
of 1024x576 CSS pixels.

Set the size of the maximum window so that its associated texture fits
within 2560x2560, which is the maximum in some systems.

The window scaling will interpolate between the default and maximum values.

This commit needed to be reverted because it clashed with recent changes
related to motion event handling. See:
  #1105
  #1106
  #1107
felipeerias pushed a commit that referenced this pull request Nov 21, 2023
b92ea92

Signed-off-by: Songlin Jiang <sjiang@igalia.com>
HollowMan6 added a commit that referenced this pull request Nov 22, 2023
Related to our recent changes in #1107

Signed-off-by: Songlin Jiang <sjiang@igalia.com>
HollowMan6 added a commit that referenced this pull request Nov 24, 2023
Related to our recent changes in #1107

Signed-off-by: Songlin Jiang <sjiang@igalia.com>
svillar pushed a commit that referenced this pull request Nov 27, 2023
Related to our recent changes in #1107

Signed-off-by: Songlin Jiang <sjiang@igalia.com>
felipeerias pushed a commit that referenced this pull request Nov 27, 2023
* Fix widgets hovering in library UI when DPI is not 100

The issue mentioned in #1106 is not caused by #1105, but rather
#1086 (comment)

This commit adds an exception to the library UI so that we
make sure we are actually in the web page when we reset the
scale to 1 for motion event handling.

---------

Signed-off-by: Songlin Jiang <sjiang@igalia.com>
Co-authored-by: Sergio Villar Senin <svillar@igalia.com>
felipeerias added a commit that referenced this pull request Nov 27, 2023
Adjust the default DPI that we pass to the Web engine so that the texture
for the default window will have twice the resolution.

Adjust the default density so that the default window has a logical size
of 1024x576 CSS pixels.

Set the size of the maximum window so that its associated texture fits
within 2560x2560, which is the maximum in some systems.

The window scaling will interpolate between the default and maximum values.

This commit needed to be reverted because it clashed with recent changes
related to motion event handling. See:
  #1105
  #1106
  #1107
felipeerias pushed a commit that referenced this pull request Nov 27, 2023
Related to our recent changes in #1107

Signed-off-by: Songlin Jiang <sjiang@igalia.com>
felipeerias pushed a commit that referenced this pull request Dec 7, 2023
* Fix widgets hovering in library UI when DPI is not 100

The issue mentioned in #1106 is not caused by #1105, but rather
#1086 (comment)

This commit adds an exception to the library UI so that we
make sure we are actually in the web page when we reset the
scale to 1 for motion event handling.

---------

Signed-off-by: Songlin Jiang <sjiang@igalia.com>
Co-authored-by: Sergio Villar Senin <svillar@igalia.com>
felipeerias added a commit that referenced this pull request Dec 7, 2023
Adjust the default DPI that we pass to the Web engine so that the texture
for the default window will have twice the resolution.

Adjust the default density so that the default window has a logical size
of 1024x576 CSS pixels.

Set the size of the maximum window so that its associated texture fits
within 2560x2560, which is the maximum in some systems.

The window scaling will interpolate between the default and maximum values.

This commit needed to be reverted because it clashed with recent changes
related to motion event handling. See:
  #1105
  #1106
  #1107
felipeerias pushed a commit that referenced this pull request Dec 7, 2023
Related to our recent changes in #1107

Signed-off-by: Songlin Jiang <sjiang@igalia.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants