-
Notifications
You must be signed in to change notification settings - Fork 71
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
www.ocus.com - see bug description #30261
Comments
Scrolling works when swiping on the touchpad, though it's not real scrolling. The site uses this lib and seems to try to handle Firefox, example: https://github.com/ayamflow/virtual-scroll/blob/master/src/index.js#L77 https://github.com/ayamflow/virtual-scroll/blob/master/src/index.js#L99 |
So what @vladikoff pointed out with a permalink in case it changes. There is this issue deltaMode default should be DOM_DELTA_PIXEL I believe they apply this It also probably means that if Firefox was changing the default behavior this code would break :/ |
That said if they fix it it should work, so why this is not working. |
fwiw slow touchpad movement and it's broken. |
{
key: '_observe',
value: function () {
this.resizer.on('resize', this._onResizeHandler),
this.infos.detect.isTouch ? (this.swiper.on('swipeup', this._onSwipeupHandler), this.swiper.on('swipedown', this._onSwipedownHandler)) : this.$.section.on('wheel', this._onWheelingHandler),
this.$.section.on('mousemove', this._onMousemoveHandler),
this.three.camera.on('startTraveling', this._onStartTravelingHandler),
this.three.camera.on('endTraveling', this._onEndTravelingHandler),
this.$.scrolldown.on('click', this._onClickScrolldownHandler),
this.three.interface.on('navClick', this._onClickNavHandler)
}
},
{
key: '_onResizeHandler',
value: function () {
this.three.isPaused || (this.vars.ww = window.innerWidth, this.vars.wh = 0.5625 * this.vars.ww, this.three.camera && this.three.camera.onResizeHandler && this.three.camera.onResizeHandler(), this._coverCanvas())
}
},
{
key: '_onWheelingHandler',
value: function (e) {
if (!this.three.isPaused) {
var t = e.deltaY;
Math.abs(t) > this.params.wheelDelta && (this.three.camera.isTraveling || (0 < t ? this.next() : this.prev()))
}
}
},
{
key: '_onSwipeupHandler',
value: function () {
this.next()
}
},
{
key: '_onSwipedownHandler',
value: function () {
this.prev()
}
},
{
key: '_onClickScrolldownHandler',
value: function () {
this.three.camera.isTraveling || this.next()
}
},
{
key: '_onClickNavHandler',
value: function (e) {
this.three.camera.isTraveling || this.navTo(e.index)
}
},
{
key: '_onMousemoveHandler',
value: function (e) {
this.three.isPaused || this.three.camera && this.three.camera.onMousemoveHandler && this.three.camera.onMousemoveHandler(e)
}
},
{
key: '_onStartTravelingHandler',
value: function () {
var e = this._getStage(this.vars.currentStage),
t = 0;
('photographer' === e.name && this.three.camera.isZoomin || 'town' === e.name && this.three.camera.isZoomout) && (t = this.params.motionBlur.townToPhotographer),
('iris' === e.name && this.three.camera.isZoomin || 'photographer' === e.name && this.three.camera.isZoomout) && (t = this.params.motionBlur.photographerToIris),
('earth' === e.name && this.three.camera.isZoomin || 'iris' === e.name && this.three.camera.isZoomout) && (t = this.params.motionBlur.irisToEarth),
this.three.postprocessing && (this.three.postprocessing.force = t, this.three.postprocessing.enableBlurMotion())
}
},
{
key: '_onEndTravelingHandler',
value: function () {
this.three.interface.showNewCurrent(),
this.three.postprocessing && this.three.postprocessing.disableBlurMotion()
}
},
and VirtualScroll.prototype._onWheel = function (e) {
var t = this.options;
if (!this._lethargy || !1 !== this._lethargy.check(e)) {
var r = this._event;
r.deltaX = e.wheelDeltaX || - 1 * e.deltaX,
r.deltaY = e.wheelDeltaY || - 1 * e.deltaY,
n.isFirefox && 1 == e.deltaMode && (r.deltaX *= t.firefoxMultiplier, r.deltaY *= t.firefoxMultiplier),
r.deltaX *= t.mouseMultiplier,
r.deltaY *= t.mouseMultiplier,
this._notify(e)
}
}, |
@wisniewskit do you have a mouse with a wheel? Could you try this? |
when going in VirtualScroll.prototype._onWheel = function(e) {
var t = this.options;
if (!this._lethargy || !1 !== this._lethargy.check(e)) {
var r = this._event;
(r.deltaX = e.wheelDeltaX || -1 * e.deltaX),
(r.deltaY = e.wheelDeltaY || -1 * e.deltaY),
n.isFirefox &&
1 == e.deltaMode &&
((r.deltaX *= t.firefoxMultiplier), (r.deltaY *= t.firefoxMultiplier)),
(r.deltaX *= t.mouseMultiplier),
(r.deltaY *= t.mouseMultiplier),
this._notify(e);
}
}; the value of
|
In Chrome, this works because a custom "startTraveling" listener is called on scrollwheel usage in their main.js:
According to the stack trace, it ends up there from here:
Firefox gets there as well, but in its case So this is because of our old friend, As usual they can modify the above code to check
With this as the utility function:
Otherwise this is a dupe of bz1392460 |
I just contacted the site using their form at https://www.ocus.com/en/offer |
This is also and still happening on Windows. Tested with: |
After retesting the issue I confirm that the issue has been fixed. I am able to scroll the page using the mouse wheel. Tested with: Closing the issue as fixed. |
URL: https://www.ocus.com/en/
Browser / Version: Firefox 67.0
Operating System: Mac OS X 10.14
Tested Another Browser: Yes
Problem type: Something else
![Screenshot Description](https://camo.githubusercontent.com/20d8a13dc83f78e2bad8114d9a63bd3f9557497094deebcc2e11ff6646856e14/68747470733a2f2f776562636f6d7061742e636f6d2f75706c6f6164732f323031392f342f34653336373737372d383465652d343439612d396630642d6235346662306332346461352d7468756d622e6a7067)
Description: Scrolling with mousewheel not working
Steps to Reproduce:
Load the page, and try to scroll with the mousewheel -- it doesn't work. You can click the little "scroll" button at the bottm and it's fine, but in Chrome I can scroll w/ mouse.
Browser Configuration
Console Messages:
From webcompat.com with ❤️
The text was updated successfully, but these errors were encountered: