File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 198198 let hPercent = 0 ;
199199 let hVal = 0 ;
200200 if (vertical) {
201- hPos = clientPos .y - dims .top ;
201+ hPos = clientPos .clientY - dims .top ;
202202 hPercent = (hPos / dims .height ) * 100 ;
203203 hVal = ((max - min) / 100 ) * hPercent + min;
204204 } else {
205- hPos = clientPos .x - dims .left ;
205+ hPos = clientPos .clientX - dims .left ;
206206 hPercent = (hPos / dims .width ) * 100 ;
207207 hVal = ((max - min) / 100 ) * hPercent + min;
208208 }
245245 let hPercent = 0 ;
246246 let hVal = 0 ;
247247 if (vertical) {
248- hPos = clientPos .y - dims .top ;
248+ hPos = clientPos .clientY - dims .top ;
249249 hPercent = (hPos / dims .height ) * 100 ;
250250 hVal = ((max - min) / 100 ) * hPercent + min;
251251 } else {
252- hPos = clientPos .x - dims .left ;
252+ hPos = clientPos .clientX - dims .left ;
253253 hPercent = (hPos / dims .width ) * 100 ;
254254 hVal = ((max - min) / 100 ) * hPercent + min;
255255 }
You can’t perform that action at this time.
0 commit comments