✨ Bento amp-image-slider#35783
Conversation
…p/amphtml into add/bento/amp-image-slider
|
This pull request introduces 2 alerts when merging ae4a181 into 84ce446 - view on LGTM.com new alerts:
|
|
This pull request introduces 2 alerts when merging 41dc19f into 9779166 - view on LGTM.com new alerts:
|
`prettify` is also performed.
extensions/amp-image-slider/1.0/test/validator-amp-image-slider.html
Outdated
Show resolved
Hide resolved
Co-Authored-By: Caroline Liu <10456171+caroqliu@users.noreply.github.com>
Co-Authored-By: Caroline Liu <10456171+caroqliu@users.noreply.github.com>
Co-Authored-By: Caroline Liu <10456171+caroqliu@users.noreply.github.com>
Co-Authored-By: Caroline Liu <10456171+caroqliu@users.noreply.github.com>
Services should not be used in the Preact component. Co-Authored-By: Caroline Liu <10456171+caroqliu@users.noreply.github.com>
…p/amphtml into add/bento/amp-image-slider
Co-Authored-By: Caroline Liu <10456171+caroqliu@users.noreply.github.com>
Co-Authored-By: Caroline Liu <10456171+caroqliu@users.noreply.github.com>
Preact component should not be creating any elements with DOM APIs. Preferring JSX instead. This is an experimental code for my storybook test.
…p/amphtml into add/bento/amp-image-slider
| unlisten(unlistenMouseMove?.current); | ||
| unlisten(unlistenMouseUp?.current); | ||
| unlistenMouseMove.current = listen(window, 'mousemove', onMouseMove); | ||
| unlistenMouseUp.current = listen(window, 'mouseup', onMouseUp); |
There was a problem hiding this comment.
If you just instantly assigning the ref, why unlist it beforehand?
There was a problem hiding this comment.
We have ported this logic from the 0.1 version component.
amphtml/extensions/amp-image-slider/0.1/amp-image-slider.js
Lines 419 to 433 in 556e94a
I have updated the above logic with this one.
if ( unlistenMouseMove.current === null ) {
unlistenMouseMove.current = listen(window, 'mousemove', onMouseMove);
}
if ( unlistenMouseUp.current === null ) {
unlistenMouseUp.current = listen(window, 'mouseup', onMouseUp);
}Please guide me If I am missing anything
There was a problem hiding this comment.
@dethstrobe Please let us know if we are missing something.
…p/amphtml into add/bento/amp-image-slider
…p/amphtml into add/bento/amp-image-slider
|
Hi @dethstrobe 👋🏻 Would you please review this PR and provide necessary feedback. Also, to resolve CircleCI dependency check, I have added
Please let me know if I am missing something. Commit Ref: ee9efef |
Goal of the PR is to create Bento
amp-image-slider.Checklist
amp-image-slidernpm: trueandwrapper : "bento"tobundles.config.extension.jsonamp-image-slider