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

Hot Graphic scrolling background #2440

Closed
ghost opened this issue May 21, 2019 · 7 comments
Closed

Hot Graphic scrolling background #2440

ghost opened this issue May 21, 2019 · 7 comments

Comments

@ghost
Copy link

ghost commented May 21, 2019

Bug adapt-contrib-hotgraphic

Scrolling background when pop up is showing

Your environment

  • Adapt Framework 4.1.1
  • Latest Chrome Version 74.0.3729.157 (Official Build) (64-bit)
  • Microsoft Windows 10

Steps to reproduce

Within the popup body of a Hot Graphic Component add a lot of text so when viewed in the browser the text goes below the view port

Expected behaviour

Should be able to scroll within the box to read all text (default behaviour in firefox)

Actual behaviour

Instead of the box background scrolling the main background scrolls

Screenshots (if you can)

Note background position - before scroll
image
After scroll
image

@brian-learningpool
Copy link
Member

The console log gives the following error:
jquery.min.js:formatted:2117 [Intervention] Unable to preventDefault inside passive event listener due to target being treated as passive. See https://www.chromestatus.com/features/6662647093133312

@moloko
Copy link
Contributor

moloko commented May 28, 2019

Tried updating to the latest version of JQuery just on the off-chance that might solve it - but sadly not.

Looks to be originating from a11y_setupScrollListeners in jquery.a11y.js

@brian-learningpool
Copy link
Member

Yes, the error message is being thrown by this line:
https://github.com/adaptlearning/adapt_framework/blob/master/src/core/js/libraries/jquery.a11y.js#L76

@oliverfoster
Copy link
Member

This concept of specifying the passive property needs applying to the other scroll events
https://github.com/adaptlearning/adapt_framework/blob/master/src/core/js/libraries/jquery.a11y.js#L556

@moloko
Copy link
Contributor

moloko commented May 29, 2019

This concept of specifying the passive property needs applying to the other scroll events
https://github.com/adaptlearning/adapt_framework/blob/master/src/core/js/libraries/jquery.a11y.js#L556

They may have to be changed to vanillajs first as it doesn't look like JQuery supports passive event listeners yet jquery/jquery#2871

@oliverfoster
Copy link
Member

oliverfoster commented May 29, 2019

That's what's needed. jQuery doesn't support event attachment options, as you said.

Just lines 553-554 and the equivalent remove on 563-564 I think?

@moloko
Copy link
Contributor

moloko commented Jun 11, 2019

@leahyjulian hopefully updating to the current master branch of the framework should fix this issue for you...

moloko added a commit that referenced this issue Jun 24, 2019
@moloko moloko closed this as completed Jun 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants