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

docs: Fix a few typos #830

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/js/timeline/Timeline.js
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ class Timeline {
this._timenav.options.height = this.options.timenav_height;
this._timenav.init();

// intial_zoom cannot be applied before the timenav has been created
// initial_zoom cannot be applied before the timenav has been created
if (this.options.initial_zoom) {
// at this point, this.options refers to the merged set of options
this.setZoom(this.options.initial_zoom);
Expand Down
18 changes: 9 additions & 9 deletions src/js/timenav/TimeNav.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { TimeGroup } from "./TimeGroup"
import { TimeEra } from "./TimeEra"
import { TimeAxis } from "./TimeAxis"
import { TimeMarker } from "./TimeMarker"
import Swipable from "../ui/Swipable"
import Swipeable from "../ui/Swipeable"
import { Animate } from "../animation/Animate"
import { I18NMixins } from "../language/I18NMixins"

Expand Down Expand Up @@ -107,7 +107,7 @@ export class TimeNav {
this.animate_css = false;

// Swipe Object
this._swipable;
this._swipeable;

// Merge Data and Options
mergeData(this.options, options);
Expand Down Expand Up @@ -157,13 +157,13 @@ export class TimeNav {
// Size Markers
this._assignRowsToMarkers();

// Size swipable area
// Size swipeable area
this._el.slider_background.style.width = this.timescale.getPixelWidth() + this.options.width + "px";
this._el.slider_background.style.left = -(this.options.width / 2) + "px";
this._el.slider.style.width = this.timescale.getPixelWidth() + this.options.width + "px";

// Update Swipable constraint
this._swipable.updateConstraint({ top: false, bottom: false, left: (this.options.width / 2), right: -(this.timescale.getPixelWidth() - (this.options.width / 2)) });
// Update Swipeable constraint
this._swipeable.updateConstraint({ top: false, bottom: false, left: (this.options.width / 2), right: -(this.timescale.getPixelWidth() - (this.options.width / 2)) });

if (reposition_markers) {
this._drawTimeline()
Expand Down Expand Up @@ -781,19 +781,19 @@ export class TimeNav {
// Time Axis
this.timeaxis = new TimeAxis(this._el.timeaxis, this.options, this.language);

// Swipable
this._swipable = new Swipable(this._el.slider_background, this._el.slider, {
// Swipeable
this._swipeable = new Swipeable(this._el.slider_background, this._el.slider, {
enable: { x: true, y: false },
constraint: { top: false, bottom: false, left: (this.options.width / 2), right: false },
snap: false
});
this._swipable.enable();
this._swipeable.enable();

}

_initEvents() {
// Drag Events
this._swipable.on('dragmove', this._onDragMove, this);
this._swipeable.on('dragmove', this._onDragMove, this);

// Scroll Events
DOMEvent.addListener(this._el.container, 'mousewheel', this._onMouseScroll, this);
Expand Down