Skip to content

Commit

Permalink
Fix typos (#10548)
Browse files Browse the repository at this point in the history
  • Loading branch information
coliff authored Apr 8, 2021
1 parent 919400c commit be2267e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/ui/camera.js
Original file line number Diff line number Diff line change
Expand Up @@ -850,7 +850,7 @@ class Camera extends Evented {
if (!calculatedOptions) return this;

options = extend(calculatedOptions, options);
// Explictly remove the padding field because, calculatedOptions already accounts for padding by setting zoom and center accordingly.
// Explicitly remove the padding field because, calculatedOptions already accounts for padding by setting zoom and center accordingly.
delete options.padding;

return options.linear ?
Expand Down Expand Up @@ -1023,7 +1023,7 @@ class Camera extends Evented {
* details not specified in `options`.
*
* Note: The transition will happen instantly if the user has enabled
* the `reduced motion` accesibility feature enabled in their operating system,
* the `reduced motion` accessibility feature enabled in their operating system,
* unless `options` includes `essential: true`.
*
* @memberof Map#
Expand Down Expand Up @@ -1109,7 +1109,7 @@ class Camera extends Evented {
}
if (this._padding) {
tr.interpolatePadding(startPadding, padding, k);
// When padding is being applied, Transform#centerPoint is changing continously,
// When padding is being applied, Transform#centerPoint is changing continuously,
// thus we need to recalculate offsetPoint every fra,e
pointAtOffset = tr.centerPoint.add(offsetAsPoint);
}
Expand Down Expand Up @@ -1203,7 +1203,7 @@ class Camera extends Evented {
* the user maintain her bearings even after traversing a great distance.
*
* Note: The animation will be skipped, and this will behave equivalently to `jumpTo`
* if the user has the `reduced motion` accesibility feature enabled in their operating system,
* if the user has the `reduced motion` accessibility feature enabled in their operating system,
* unless 'options' includes `essential: true`.
*
* @memberof Map#
Expand Down Expand Up @@ -1399,7 +1399,7 @@ class Camera extends Evented {
}
if (this._padding) {
tr.interpolatePadding(startPadding, padding, k);
// When padding is being applied, Transform#centerPoint is changing continously,
// When padding is being applied, Transform#centerPoint is changing continuously,
// thus we need to recalculate offsetPoint every frame
pointAtOffset = tr.centerPoint.add(offsetAsPoint);
}
Expand Down

0 comments on commit be2267e

Please sign in to comment.