-
Notifications
You must be signed in to change notification settings - Fork 126
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(core): remove hammerjs from library #5980
Conversation
✔️ Deploy Preview for fundamental-ngx ready! 🔨 Explore the source changes: fbda745 🔍 Inspect the deploy log: https://app.netlify.com/sites/fundamental-ngx/deploys/60f0461f10776d0007626f91 😎 Browse the preview: https://deploy-preview-5980--fundamental-ngx.netlify.app |
.fd-carousel__content { | ||
> div { | ||
touch-action: pan-x; | ||
user-select: none; | ||
-webkit-user-drag: none; | ||
-webkit-tap-highlight-color: rgba(0, 0, 0, 0); | ||
|
||
&.fd-carousel__content--horizontal { | ||
touch-action: pan-y; | ||
} | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please move this to fundamental-styles
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've created separate bug in fundamental-styles to reflect the carousel component's layout from fundamental-ngx: SAP/fundamental-styles#2574
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor stuff, the code looks great
Also Travis is failing
/** @hidden */ | ||
private _dragStarted = false; | ||
|
||
/** An RxJS Subject that will kill the data stream upon component’s destruction (for unsubscribing) */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be hidden
this._hammer.on('panstart', () => this._handlePanStart()); | ||
this._hammer.on('panend', (event) => this._handlePanEnd(event.deltaX)); | ||
} | ||
private _subscribeToEvents( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/** @hidden */
032b0d9
to
105878a
Compare
Please provide a link to the associated issue.
Closes #4132
Please provide a brief summary of this pull request.
Removed hammerjs library from fundamental-ngx/core and refactored carousel component
Please check whether the PR fulfills the following requirements
https://github.com/SAP/fundamental-ngx/blob/main/CONTRIBUTING.md
https://github.com/SAP/fundamental-ngx/wiki/PR-Review-Checklist
Documentation checklist:
README.md