Skip to content

Commit

Permalink
Merge pull request #1274 from szepeviktor/typos
Browse files Browse the repository at this point in the history
Fix typos
  • Loading branch information
leongersen authored Jun 23, 2024
2 parents b8a1b58 + b36d018 commit faa3252
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion documentation/assets/wNumb.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ var FormatOptions = [
return false;
}

// Covert to number.
// Convert to number.
output = Number(output);

// Run the user-specified post-decoder.
Expand Down
2 changes: 1 addition & 1 deletion documentation/behaviour-option.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@
<section>

<div class="view">
<p>A handle snaps to a clicked location. It can immediatly be moved, without a <code>mouseup</code> + <code>mousedown</code>.</p>
<p>A handle snaps to a clicked location. It can immediately be moved, without a <code>mouseup</code> + <code>mousedown</code>.</p>
<div class="example">
<div id="snap"></div>
<?php run('snap'); ?>
Expand Down
2 changes: 1 addition & 1 deletion documentation/download.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@

<p>noUiSlider can be downloaded from GitHub. Required files are in the <code>dist</code> folder. To compile from sources, run <code>npm run build</code>.</p>

<a href="https://github.com/leongersen/noUiSlider/releases" data-category="convert" data-action="download">Download noUiSlider from Github</a>
<a href="https://github.com/leongersen/noUiSlider/releases" data-category="convert" data-action="download">Download noUiSlider from GitHub</a>

</section>
2 changes: 1 addition & 1 deletion documentation/events-callbacks.php
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@
<div class="view">
<p>noUiSlider uses a custom binding model with support for namespaces. There are two methods, <code>.on(eventName, callback)</code> and <code>.off(eventName)</code>. Events can be namespaced by appending a period ('.') and an identifier to the event name.</p>

<p>Nested namespaces (<code>'slide.something.else'</code>) are not supported, and are threated as a single namespace (so <code>'.a.b'</code> isn't related to <code>'.a'</code>).</p>
<p>Nested namespaces (<code>'slide.something.else'</code>) are not supported, and are treated as a single namespace (so <code>'.a.b'</code> isn't related to <code>'.a'</code>).</p>

<p><code>values</code> is an array containing the current slider values, with formatting applied. <code>handle</code> is the index of the handle that caused the event, starting at zero. <code>values[handle]</code> gives the value for the handle that triggered the event.</p>

Expand Down
2 changes: 1 addition & 1 deletion documentation/examples-content/styling.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
<?php loadShowCSS('styling-no-overlap'); ?>
</div>

<div class="viewer-header">Fit handles withing the slider</div>
<div class="viewer-header">Fit handles within the slider</div>

<div class="viewer-content">
<?php loadShowCSS('styling-fit'); ?>
Expand Down
4 changes: 2 additions & 2 deletions src/nouislider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ function offset(elem: HTMLElement, orientation: 0 | 1): number {

// getBoundingClientRect contains left scroll in Chrome on Android.
// I haven't found a feature detection that proves this. Worst case
// scenario on mis-match: the 'tap' feature on horizontal sliders breaks.
// scenario on mismatch: the 'tap' feature on horizontal sliders breaks.
if (/webkit.*Chrome.*Mobile/i.test(navigator.userAgent)) {
pageOffset.x = 0;
}
Expand Down Expand Up @@ -776,7 +776,7 @@ class Spectrum {
private handleEntryPoint(index: string, value: WrappedSubRange): void {
let percentage;

// Covert min/max syntax to 0 and 100.
// Convert min/max syntax to 0 and 100.
if (index === "min") {
percentage = 0;
} else if (index === "max") {
Expand Down

0 comments on commit faa3252

Please sign in to comment.