Version Description
- tested on WP 5.9
- removed fixed background option
Download this release
Release Info
Developer | kubiq |
Plugin | MouseWheel Smooth Scroll |
Version | 5.8 |
Comparing to | |
See all releases |
Code changes from version 5.7 to 5.8
- js/SmoothScroll.js +2 -13
- js/SmoothScroll.min.js +1 -1
- mousewheel-smooth-scroll.php +12 -25
- readme.txt +7 -3
js/SmoothScroll.js
CHANGED
@@ -35,11 +35,7 @@ var defaultOptions = {
|
|
35 |
|
36 |
// Keyboard Settings
|
37 |
keyboardSupport : true, // option
|
38 |
-
arrowScroll : 50
|
39 |
-
|
40 |
-
// Other
|
41 |
-
fixedBackground : true,
|
42 |
-
excluded : ''
|
43 |
};
|
44 |
|
45 |
var options = defaultOptions;
|
@@ -58,8 +54,7 @@ var deltaBuffer = [];
|
|
58 |
var deltaBufferTimer;
|
59 |
var isMac = /^Mac/.test(navigator.platform);
|
60 |
|
61 |
-
var key = { left: 37, up: 38, right: 39, down: 40, spacebar: 32,
|
62 |
-
pageup: 33, pagedown: 34, end: 35, home: 36 };
|
63 |
var arrowKeys = { 37: 1, 38: 1, 39: 1, 40: 1 };
|
64 |
|
65 |
/***********************************************
|
@@ -150,12 +145,6 @@ function init() {
|
|
150 |
body.appendChild(clearfix);
|
151 |
}
|
152 |
}
|
153 |
-
|
154 |
-
// disable fixed background
|
155 |
-
if (!options.fixedBackground && !isExcluded) {
|
156 |
-
body.style.backgroundAttachment = 'scroll';
|
157 |
-
html.style.backgroundAttachment = 'scroll';
|
158 |
-
}
|
159 |
}
|
160 |
|
161 |
/**
|
35 |
|
36 |
// Keyboard Settings
|
37 |
keyboardSupport : true, // option
|
38 |
+
arrowScroll : 50 // [px]
|
|
|
|
|
|
|
|
|
39 |
};
|
40 |
|
41 |
var options = defaultOptions;
|
54 |
var deltaBufferTimer;
|
55 |
var isMac = /^Mac/.test(navigator.platform);
|
56 |
|
57 |
+
var key = { left: 37, up: 38, right: 39, down: 40, spacebar: 32, pageup: 33, pagedown: 34, end: 35, home: 36 };
|
|
|
58 |
var arrowKeys = { 37: 1, 38: 1, 39: 1, 40: 1 };
|
59 |
|
60 |
/***********************************************
|
145 |
body.appendChild(clearfix);
|
146 |
}
|
147 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
148 |
}
|
149 |
|
150 |
/**
|
js/SmoothScroll.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(){var s,i,
|
1 |
+
!function(){var s,l,i,r,o={frameRate:150,animationTime:400,stepSize:100,pulseAlgorithm:!0,pulseScale:4,pulseNormalize:1,accelerationDelta:50,accelerationMax:3,keyboardSupport:!0,arrowScroll:50},m=o,c=!1,u=!1,n={x:0,y:0},d=!1,f=document.documentElement,a=[],w=/^Mac/.test(navigator.platform),h={left:37,up:38,right:39,down:40,spacebar:32,pageup:33,pagedown:34,end:35,home:36},p={37:1,38:1,39:1,40:1};function v(){var e,t,o,n,r,a;!d&&document.body&&(d=!0,e=document.body,t=document.documentElement,a=window.innerHeight,o=e.scrollHeight,f=0<=document.compatMode.indexOf("CSS")?t:e,s=e,m.keyboardSupport&&Y("keydown",x),top!=self?u=!0:Q&&a<o&&(e.offsetHeight<=a||t.offsetHeight<=a)&&((n=document.createElement("div")).style.cssText="position:absolute; z-index:-10000; top:0; left:0; right:0; height:"+f.scrollHeight+"px",document.body.appendChild(n),i=function(){r=r||setTimeout(function(){c||(n.style.height="0",n.style.height=f.scrollHeight+"px",r=null)},500)},setTimeout(i,10),Y("resize",i),(l=new R(i)).observe(e,{attributes:!0,childList:!0,characterData:!1}),f.offsetHeight<=a&&((a=document.createElement("div")).style.clear="both",e.appendChild(a))))}var y=[],b=!1,g=Date.now();function S(s,u,d){var e,t,o,f,w;e=0<(e=u)?1:-1,t=0<(t=d)?1:-1,n.x===e&&n.y===t||(n.x=e,n.y=t,y=[],g=0),1!=m.accelerationMax&&((t=Date.now()-g)<m.accelerationDelta&&(1<(o=(1+50/t)/2)&&(o=Math.min(o,m.accelerationMax),u*=o,d*=o)),g=Date.now()),y.push({x:u,y:d,lastX:u<0?.99:-.99,lastY:d<0?.99:-.99,start:Date.now()}),b||(o=q(),f=s===o||s===document.body,null==s.$scrollBehavior&&function(e){var t=B(e);null==T[t]&&(e=getComputedStyle(e,"")["scroll-behavior"],T[t]="smooth"==e);return T[t]}(s)&&(s.$scrollBehavior=s.style.scrollBehavior,s.style.scrollBehavior="auto"),w=function(e){for(var t=Date.now(),o=0,n=0,r=0;r<y.length;r++){var a=y[r],l=t-a.start,i=l>=m.animationTime,c=i?1:l/m.animationTime;m.pulseAlgorithm&&(c=function(e){if(1<=e)return 1;if(e<=0)return 0;1==m.pulseNormalize&&(m.pulseNormalize/=F(1));return F(e)}(c));l=a.x*c-a.lastX>>0,c=a.y*c-a.lastY>>0;o+=l,n+=c,a.lastX+=l,a.lastY+=c,i&&(y.splice(r,1),r--)}f?window.scrollBy(o,n):(o&&(s.scrollLeft+=o),n&&(s.scrollTop+=n)),(y=!u&&!d?[]:y).length?A(w,s,1e3/m.frameRate+1):(b=!1,null!=s.$scrollBehavior&&(s.style.scrollBehavior=s.$scrollBehavior,s.$scrollBehavior=null))},A(w,s,0),b=!0)}function e(e){d||v();var t=e.target;if(e.defaultPrevented||e.ctrlKey)return!0;if(K(s,"embed")||K(t,"embed")&&/\.pdf/i.test(t.src)||K(s,"object")||t.shadowRoot)return!0;var o=-e.wheelDeltaX||e.deltaX||0,n=-e.wheelDeltaY||e.deltaY||0;w&&(e.wheelDeltaX&&P(e.wheelDeltaX,120)&&(o=e.wheelDeltaX/Math.abs(e.wheelDeltaX)*-120),e.wheelDeltaY&&P(e.wheelDeltaY,120)&&(n=e.wheelDeltaY/Math.abs(e.wheelDeltaY)*-120)),o||n||(n=-e.wheelDelta||0),1===e.deltaMode&&(o*=40,n*=40);t=H(t);return t?!!function(e){if(e){a.length||(a=[e,e,e]),e=Math.abs(e),a.push(e),a.shift(),clearTimeout(r),r=setTimeout(function(){try{localStorage.SS_deltaBuffer=a.join(",")}catch(e){}},1e3);var t=120<e&&$(e),t=!$(120)&&!$(100)&&!t;return e<50||t}}(n)||(1.2<Math.abs(o)&&(o*=m.stepSize/120),1.2<Math.abs(n)&&(n*=m.stepSize/120),S(t,o,n),e.preventDefault(),void O()):!u||!W||(Object.defineProperty(e,"target",{value:window.frameElement}),parent.wheel(e))}function x(e){var t=e.target,o=e.ctrlKey||e.altKey||e.metaKey||e.shiftKey&&e.keyCode!==h.spacebar;document.body.contains(s)||(s=document.activeElement);var n=/^(button|submit|radio|checkbox|file|color|image)$/i;if(e.defaultPrevented||/^(textarea|select|embed|object)$/i.test(t.nodeName)||K(t,"input")&&!n.test(t.type)||K(s,"video")||function(e){var t=e.target,o=!1;if(-1!=document.URL.indexOf("www.youtube.com/watch"))do{if(o=t.classList&&t.classList.contains("html5-video-controls"))break}while(t=t.parentNode);return o}(e)||t.isContentEditable||o)return!0;if((K(t,"button")||K(t,"input")&&n.test(t.type))&&e.keyCode===h.spacebar)return!0;if(K(t,"input")&&"radio"==t.type&&p[e.keyCode])return!0;var r=0,a=0,l=H(s);if(!l)return!u||!W||parent.keydown(e);var i=l.clientHeight;switch(l==document.body&&(i=window.innerHeight),e.keyCode){case h.up:a=-m.arrowScroll;break;case h.down:a=m.arrowScroll;break;case h.spacebar:a=-(e.shiftKey?1:-1)*i*.9;break;case h.pageup:a=.9*-i;break;case h.pagedown:a=.9*i;break;case h.home:a=-(l=l==document.body&&document.scrollingElement?document.scrollingElement:l).scrollTop;break;case h.end:var c=l.scrollHeight-l.scrollTop-i,a=0<c?10+c:0;break;case h.left:r=-m.arrowScroll;break;case h.right:r=m.arrowScroll;break;default:return!0}S(l,r,a),e.preventDefault(),O()}function t(e){s=e.target}var D,k,B=(D=0,function(e){return e.uniqueID||(e.uniqueID=D++)}),E={},M={},T={};function O(){clearTimeout(k),k=setInterval(function(){E=M=T={}},1e3)}function C(e,t,o){for(var n=o?E:M,r=e.length;r--;)n[B(e[r])]=t;return t}function H(e){var t=[],o=document.body,n=f.scrollHeight;do{var r=(!1?E:M)[B(e)];if(r)return C(t,r);if(t.push(e),n===e.scrollHeight){r=L(f)&&L(o)||X(f);if(u&&z(f)||!u&&r)return C(t,q())}else if(z(e)&&X(e))return C(t,e)}while(e=e.parentElement)}function z(e){return e.clientHeight+10<e.scrollHeight}function L(e){return"hidden"!==getComputedStyle(e,"").getPropertyValue("overflow-y")}function X(e){e=getComputedStyle(e,"").getPropertyValue("overflow-y");return"scroll"===e||"auto"===e}function Y(e,t,o){window.addEventListener(e,t,o||!1)}function N(e,t,o){window.removeEventListener(e,t,o||!1)}function K(e,t){return e&&(e.nodeName||"").toLowerCase()===t.toLowerCase()}if(window.localStorage&&localStorage.SS_deltaBuffer)try{a=localStorage.SS_deltaBuffer.split(",")}catch(e){}function P(e,t){return Math.floor(e/t)==e/t}function $(e){return P(a[0],e)&&P(a[1],e)&&P(a[2],e)}var j,A=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e,t,o){window.setTimeout(e,o||1e3/60)},R=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver,q=(j=document.scrollingElement,function(){var e,t;return j||((e=document.createElement("div")).style.cssText="height:10000px;width:1px;",document.body.appendChild(e),t=document.body.scrollTop,document.documentElement.scrollTop,window.scrollBy(0,3),j=document.body.scrollTop!=t?document.body:document.documentElement,window.scrollBy(0,-3),document.body.removeChild(e)),j});function F(e){var t;return((e*=m.pulseScale)<1?e-(1-Math.exp(-e)):(--e,(t=Math.exp(-1))+(1-Math.exp(-e))*(1-t)))*m.pulseNormalize}var I=window.navigator.userAgent,V=/Edge/.test(I),W=/chrome/i.test(I)&&!V,_=/safari/i.test(I)&&!V,U=/firefox/i.test(I),G=/mobile/i.test(I),J=/Windows NT 6.1/i.test(I)&&/rv:11/i.test(I),Q=_&&(/Version\/8/i.test(I)||/Version\/9/i.test(I)),Z=function(){if(G)return~allowedBrowsers.indexOf("Mobile");return V?~allowedBrowsers.indexOf("Edge"):W?~allowedBrowsers.indexOf("Chrome"):_?~allowedBrowsers.indexOf("Safari"):U?~allowedBrowsers.indexOf("Firefox"):J?~allowedBrowsers.indexOf("IEWin7"):~allowedBrowsers.indexOf("other")}();var ee=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){ee=!0}}))}catch(e){}var I=!!ee&&{passive:!1},te="onwheel"in document.createElement("div")?"wheel":"mousewheel";function oe(e){for(var t in e)o.hasOwnProperty(t)&&(m[t]=e[t])}te&&Z&&(Y(te,e,I),Y("mousedown",t),Y("load",v)),oe.destroy=function(){l&&l.disconnect(),N(te,e),N("mousedown",t),N("keydown",x),N("resize",i),N("load",v)},window.SmoothScrollOptions&&oe(window.SmoothScrollOptions),"function"==typeof define&&define.amd?define(function(){return oe}):"object"==typeof exports?module.exports=oe:window.SmoothScroll=oe}();
|
mousewheel-smooth-scroll.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: MouseWheel Smooth Scroll
|
4 |
Plugin URI: https://kubiq.sk
|
5 |
Description: MouseWheel smooth scrolling for your WordPress website
|
6 |
-
Version: 5.
|
7 |
Author: KubiQ
|
8 |
Author URI: https://kubiq.sk
|
9 |
Text Domain: wpmss
|
@@ -50,7 +50,6 @@ class wpmss{
|
|
50 |
$this->settings['general']['timestamp'] = time();
|
51 |
$this->settings['general']['pulseAlgorithm'] = 1;
|
52 |
$this->settings['general']['keyboardSupport'] = 1;
|
53 |
-
$this->settings['general']['fixedBackground'] = 1;
|
54 |
update_option( 'wpmss_settings', $this->settings );
|
55 |
}
|
56 |
|
@@ -72,7 +71,6 @@ class wpmss{
|
|
72 |
$this->settings['general']['accelerationMax'] = isset( $this->settings['general']['accelerationMax'] ) && trim( $this->settings['general']['accelerationMax'] ) ? intval( $this->settings['general']['accelerationMax'] ) : 3;
|
73 |
$this->settings['general']['keyboardSupport'] = isset( $this->settings['general']['keyboardSupport'] ) ? 1 : 0;
|
74 |
$this->settings['general']['arrowScroll'] = isset( $this->settings['general']['arrowScroll'] ) && trim( $this->settings['general']['arrowScroll'] ) ? intval( $this->settings['general']['arrowScroll'] ) : 50;
|
75 |
-
$this->settings['general']['fixedBackground'] = isset( $this->settings['general']['fixedBackground'] ) ? 1 : 0;
|
76 |
$this->settings['general']['allowedBrowsers'] = isset( $this->settings['general']['allowedBrowsers'] ) ? (array)$this->settings['general']['allowedBrowsers'] : array( 'IEWin7', 'Chrome', 'Safari' );
|
77 |
|
78 |
if( ! file_exists( $this->uploads['basedir'] . '/wpmss/wpmss.min.js' ) ){
|
@@ -117,7 +115,6 @@ class wpmss{
|
|
117 |
'accelerationMax:%d,'.
|
118 |
'keyboardSupport:%d,'.
|
119 |
'arrowScroll:%d,'.
|
120 |
-
'fixedBackground:%d'.
|
121 |
'})',
|
122 |
intval( $this->settings['general']['frameRate'] ),
|
123 |
intval( $this->settings['general']['animationTime'] ),
|
@@ -129,7 +126,6 @@ class wpmss{
|
|
129 |
intval( $this->settings['general']['accelerationMax'] ),
|
130 |
intval( $this->settings['general']['keyboardSupport'] ),
|
131 |
intval( $this->settings['general']['arrowScroll'] ),
|
132 |
-
intval( $this->settings['general']['fixedBackground'] )
|
133 |
);
|
134 |
file_put_contents( $this->uploads['basedir'] . '/wpmss/wpmss.min.js', $content );
|
135 |
}
|
@@ -179,7 +175,7 @@ class wpmss{
|
|
179 |
</th>
|
180 |
<td>
|
181 |
<input type="number" name="frameRate" placeholder="150" value="<?php echo $this->settings[ $this->tab ]['frameRate'] ?>" id="q_field_1">
|
182 |
-
[Hz] <small class="default"
|
183 |
</td>
|
184 |
</tr>
|
185 |
<tr>
|
@@ -188,7 +184,7 @@ class wpmss{
|
|
188 |
</th>
|
189 |
<td>
|
190 |
<input type="number" name="animationTime" placeholder="1000" value="<?php echo $this->settings[ $this->tab ]['animationTime'] ?>" id="q_field_2">
|
191 |
-
[ms] <small class="default"
|
192 |
</td>
|
193 |
</tr>
|
194 |
<tr>
|
@@ -197,7 +193,7 @@ class wpmss{
|
|
197 |
</th>
|
198 |
<td>
|
199 |
<input type="number" name="stepSize" placeholder="100" value="<?php echo $this->settings[ $this->tab ]['stepSize'] ?>" id="q_field_3">
|
200 |
-
[px] <small class="default"
|
201 |
</td>
|
202 |
</tr>
|
203 |
|
@@ -212,7 +208,7 @@ class wpmss{
|
|
212 |
</th>
|
213 |
<td>
|
214 |
<input type="checkbox" name="pulseAlgorithm" value="1" <?php echo $this->settings[ $this->tab ]['pulseAlgorithm'] ? 'checked="checked"' : '' ?> id="q_field_35">
|
215 |
-
 <small class="default"
|
216 |
</td>
|
217 |
</tr>
|
218 |
<tr>
|
@@ -221,7 +217,7 @@ class wpmss{
|
|
221 |
</th>
|
222 |
<td>
|
223 |
<input type="number" name="pulseScale" placeholder="4" value="<?php echo $this->settings[ $this->tab ]['pulseScale'] ?>" id="q_field_4">
|
224 |
-
 <small class="default"
|
225 |
</td>
|
226 |
</tr>
|
227 |
<tr>
|
@@ -230,7 +226,7 @@ class wpmss{
|
|
230 |
</th>
|
231 |
<td>
|
232 |
<input type="number" name="pulseNormalize" placeholder="1" value="<?php echo $this->settings[ $this->tab ]['pulseNormalize'] ?>" id="q_field_5">
|
233 |
-
 <small class="default"
|
234 |
</td>
|
235 |
</tr>
|
236 |
|
@@ -245,7 +241,7 @@ class wpmss{
|
|
245 |
</th>
|
246 |
<td>
|
247 |
<input type="number" name="accelerationDelta" placeholder="50" value="<?php echo $this->settings[ $this->tab ]['accelerationDelta'] ?>" id="q_field_6">
|
248 |
-
 <small class="default"
|
249 |
</td>
|
250 |
</tr>
|
251 |
<tr>
|
@@ -254,7 +250,7 @@ class wpmss{
|
|
254 |
</th>
|
255 |
<td>
|
256 |
<input type="number" name="accelerationMax" placeholder="3" value="<?php echo $this->settings[ $this->tab ]['accelerationMax'] ?>" id="q_field_7">
|
257 |
-
 <small class="default"
|
258 |
</td>
|
259 |
</tr>
|
260 |
|
@@ -269,7 +265,7 @@ class wpmss{
|
|
269 |
</th>
|
270 |
<td>
|
271 |
<input type="checkbox" name="keyboardSupport" value="1" <?php echo $this->settings[ $this->tab ]['keyboardSupport'] ? 'checked="checked"' : '' ?> id="q_field_75">
|
272 |
-
 <small class="default"
|
273 |
</td>
|
274 |
</tr>
|
275 |
<tr>
|
@@ -278,7 +274,7 @@ class wpmss{
|
|
278 |
</th>
|
279 |
<td>
|
280 |
<input type="number" name="arrowScroll" placeholder="50" value="<?php echo $this->settings[ $this->tab ]['arrowScroll'] ?>" id="q_field_8">
|
281 |
-
[px] <small class="default"
|
282 |
</td>
|
283 |
</tr>
|
284 |
|
@@ -287,15 +283,6 @@ class wpmss{
|
|
287 |
<h3><?php _e( 'Other', 'wpmss' ) ?></h3>
|
288 |
</th>
|
289 |
</tr>
|
290 |
-
<tr>
|
291 |
-
<th>
|
292 |
-
<label for="q_field_10"><?php _e( 'fixedBackground', 'wpmss' ) ?>:</label>
|
293 |
-
</th>
|
294 |
-
<td>
|
295 |
-
<input type="checkbox" name="fixedBackground" value="1" <?php echo $this->settings[ $this->tab ]['fixedBackground'] ? 'checked="checked"' : '' ?> id="q_field_10">
|
296 |
-
 <small class="default">default: on</small>
|
297 |
-
</td>
|
298 |
-
</tr>
|
299 |
<tr>
|
300 |
<th>
|
301 |
<label for="q_field_11"><?php _e( 'allowedBrowsers', 'wpmss' ) ?>:</label>
|
@@ -314,7 +301,7 @@ class wpmss{
|
|
314 |
echo '<option value="' . $key . '"' . ( in_array( $key, $this->settings[ $this->tab ]['allowedBrowsers'] ) ? ' selected="selected"' : '' ) . '>' . $value . '</option>';
|
315 |
} ?>
|
316 |
</select>
|
317 |
-
 <small class="default"
|
318 |
</td>
|
319 |
</tr>
|
320 |
</table>
|
3 |
Plugin Name: MouseWheel Smooth Scroll
|
4 |
Plugin URI: https://kubiq.sk
|
5 |
Description: MouseWheel smooth scrolling for your WordPress website
|
6 |
+
Version: 5.8
|
7 |
Author: KubiQ
|
8 |
Author URI: https://kubiq.sk
|
9 |
Text Domain: wpmss
|
50 |
$this->settings['general']['timestamp'] = time();
|
51 |
$this->settings['general']['pulseAlgorithm'] = 1;
|
52 |
$this->settings['general']['keyboardSupport'] = 1;
|
|
|
53 |
update_option( 'wpmss_settings', $this->settings );
|
54 |
}
|
55 |
|
71 |
$this->settings['general']['accelerationMax'] = isset( $this->settings['general']['accelerationMax'] ) && trim( $this->settings['general']['accelerationMax'] ) ? intval( $this->settings['general']['accelerationMax'] ) : 3;
|
72 |
$this->settings['general']['keyboardSupport'] = isset( $this->settings['general']['keyboardSupport'] ) ? 1 : 0;
|
73 |
$this->settings['general']['arrowScroll'] = isset( $this->settings['general']['arrowScroll'] ) && trim( $this->settings['general']['arrowScroll'] ) ? intval( $this->settings['general']['arrowScroll'] ) : 50;
|
|
|
74 |
$this->settings['general']['allowedBrowsers'] = isset( $this->settings['general']['allowedBrowsers'] ) ? (array)$this->settings['general']['allowedBrowsers'] : array( 'IEWin7', 'Chrome', 'Safari' );
|
75 |
|
76 |
if( ! file_exists( $this->uploads['basedir'] . '/wpmss/wpmss.min.js' ) ){
|
115 |
'accelerationMax:%d,'.
|
116 |
'keyboardSupport:%d,'.
|
117 |
'arrowScroll:%d,'.
|
|
|
118 |
'})',
|
119 |
intval( $this->settings['general']['frameRate'] ),
|
120 |
intval( $this->settings['general']['animationTime'] ),
|
126 |
intval( $this->settings['general']['accelerationMax'] ),
|
127 |
intval( $this->settings['general']['keyboardSupport'] ),
|
128 |
intval( $this->settings['general']['arrowScroll'] ),
|
|
|
129 |
);
|
130 |
file_put_contents( $this->uploads['basedir'] . '/wpmss/wpmss.min.js', $content );
|
131 |
}
|
175 |
</th>
|
176 |
<td>
|
177 |
<input type="number" name="frameRate" placeholder="150" value="<?php echo $this->settings[ $this->tab ]['frameRate'] ?>" id="q_field_1">
|
178 |
+
[Hz] <small class="default"><?php _e( 'default:', 'wpmss' ) ?> 150</small>
|
179 |
</td>
|
180 |
</tr>
|
181 |
<tr>
|
184 |
</th>
|
185 |
<td>
|
186 |
<input type="number" name="animationTime" placeholder="1000" value="<?php echo $this->settings[ $this->tab ]['animationTime'] ?>" id="q_field_2">
|
187 |
+
[ms] <small class="default"><?php _e( 'default:', 'wpmss' ) ?> 1000</small>
|
188 |
</td>
|
189 |
</tr>
|
190 |
<tr>
|
193 |
</th>
|
194 |
<td>
|
195 |
<input type="number" name="stepSize" placeholder="100" value="<?php echo $this->settings[ $this->tab ]['stepSize'] ?>" id="q_field_3">
|
196 |
+
[px] <small class="default"><?php _e( 'default:', 'wpmss' ) ?> 100</small>
|
197 |
</td>
|
198 |
</tr>
|
199 |
|
208 |
</th>
|
209 |
<td>
|
210 |
<input type="checkbox" name="pulseAlgorithm" value="1" <?php echo $this->settings[ $this->tab ]['pulseAlgorithm'] ? 'checked="checked"' : '' ?> id="q_field_35">
|
211 |
+
 <small class="default"><?php _e( 'default:', 'wpmss' ) ?> on</small>
|
212 |
</td>
|
213 |
</tr>
|
214 |
<tr>
|
217 |
</th>
|
218 |
<td>
|
219 |
<input type="number" name="pulseScale" placeholder="4" value="<?php echo $this->settings[ $this->tab ]['pulseScale'] ?>" id="q_field_4">
|
220 |
+
 <small class="default"><?php _e( 'default:', 'wpmss' ) ?> 4</small>
|
221 |
</td>
|
222 |
</tr>
|
223 |
<tr>
|
226 |
</th>
|
227 |
<td>
|
228 |
<input type="number" name="pulseNormalize" placeholder="1" value="<?php echo $this->settings[ $this->tab ]['pulseNormalize'] ?>" id="q_field_5">
|
229 |
+
 <small class="default"><?php _e( 'default:', 'wpmss' ) ?> 1</small>
|
230 |
</td>
|
231 |
</tr>
|
232 |
|
241 |
</th>
|
242 |
<td>
|
243 |
<input type="number" name="accelerationDelta" placeholder="50" value="<?php echo $this->settings[ $this->tab ]['accelerationDelta'] ?>" id="q_field_6">
|
244 |
+
 <small class="default"><?php _e( 'default:', 'wpmss' ) ?> 50</small>
|
245 |
</td>
|
246 |
</tr>
|
247 |
<tr>
|
250 |
</th>
|
251 |
<td>
|
252 |
<input type="number" name="accelerationMax" placeholder="3" value="<?php echo $this->settings[ $this->tab ]['accelerationMax'] ?>" id="q_field_7">
|
253 |
+
 <small class="default"><?php _e( 'default:', 'wpmss' ) ?> 3</small>
|
254 |
</td>
|
255 |
</tr>
|
256 |
|
265 |
</th>
|
266 |
<td>
|
267 |
<input type="checkbox" name="keyboardSupport" value="1" <?php echo $this->settings[ $this->tab ]['keyboardSupport'] ? 'checked="checked"' : '' ?> id="q_field_75">
|
268 |
+
 <small class="default"><?php _e( 'default:', 'wpmss' ) ?> on</small>
|
269 |
</td>
|
270 |
</tr>
|
271 |
<tr>
|
274 |
</th>
|
275 |
<td>
|
276 |
<input type="number" name="arrowScroll" placeholder="50" value="<?php echo $this->settings[ $this->tab ]['arrowScroll'] ?>" id="q_field_8">
|
277 |
+
[px] <small class="default"><?php _e( 'default:', 'wpmss' ) ?> 50</small>
|
278 |
</td>
|
279 |
</tr>
|
280 |
|
283 |
<h3><?php _e( 'Other', 'wpmss' ) ?></h3>
|
284 |
</th>
|
285 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
286 |
<tr>
|
287 |
<th>
|
288 |
<label for="q_field_11"><?php _e( 'allowedBrowsers', 'wpmss' ) ?>:</label>
|
301 |
echo '<option value="' . $key . '"' . ( in_array( $key, $this->settings[ $this->tab ]['allowedBrowsers'] ) ? ' selected="selected"' : '' ) . '>' . $value . '</option>';
|
302 |
} ?>
|
303 |
</select>
|
304 |
+
 <small class="default"><?php _e( 'default:', 'wpmss' ) ?> IEWin7, Chrome, Safari</small>
|
305 |
</td>
|
306 |
</tr>
|
307 |
</table>
|
readme.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
-
===
|
2 |
Contributors: KubiQ
|
3 |
Donate link: https://www.paypal.me/jakubnovaksl
|
4 |
Tags: smooth scroll, mousewheel scroll, scrolling
|
5 |
Requires at least: 3.0.1
|
6 |
-
Tested up to: 5.
|
7 |
-
Stable tag: 5.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -26,6 +26,10 @@ Replace basic website scrolling "effect" with nice smooth scroll using mousewhee
|
|
26 |
|
27 |
== Changelog ==
|
28 |
|
|
|
|
|
|
|
|
|
29 |
= 5.7 =
|
30 |
* tested on WP 5.8
|
31 |
* security improvements
|
1 |
+
=== MouseWheel Smooth Scroll ===
|
2 |
Contributors: KubiQ
|
3 |
Donate link: https://www.paypal.me/jakubnovaksl
|
4 |
Tags: smooth scroll, mousewheel scroll, scrolling
|
5 |
Requires at least: 3.0.1
|
6 |
+
Tested up to: 5.9
|
7 |
+
Stable tag: 5.8
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
26 |
|
27 |
== Changelog ==
|
28 |
|
29 |
+
= 5.8 =
|
30 |
+
* tested on WP 5.9
|
31 |
+
* removed fixed background option
|
32 |
+
|
33 |
= 5.7 =
|
34 |
* tested on WP 5.8
|
35 |
* security improvements
|