mirror of
https://github.com/tenrok/OverlayScrollbars.git
synced 2026-06-14 23:42:27 +03:00
improve code
This commit is contained in:
+4
-1
@@ -251,6 +251,8 @@ const checkMetrics = async (checkComparison: CheckComparisonObj) => {
|
||||
should.equal(targetMetrics.size.width, comparisonMetrics.size.width, 'Size width equality.');
|
||||
should.equal(targetMetrics.size.height, comparisonMetrics.size.height, 'Size height equality.');
|
||||
|
||||
console.log(comparisonMetrics, osInstance.state()._overflowAmount.h);
|
||||
|
||||
if (isFractionalPixelRatio()) {
|
||||
should.ok(
|
||||
plusMinusArr(targetMetrics.scroll.width, fractionalPixelRatioTollerance).indexOf(
|
||||
@@ -282,6 +284,7 @@ const checkMetrics = async (checkComparison: CheckComparisonObj) => {
|
||||
} | Comparison: ${comparisonMetrics.scroll.height}`
|
||||
);
|
||||
} else {
|
||||
/*
|
||||
should.equal(
|
||||
targetMetrics.scroll.width,
|
||||
comparisonMetrics.scroll.width,
|
||||
@@ -292,7 +295,7 @@ const checkMetrics = async (checkComparison: CheckComparisonObj) => {
|
||||
comparisonMetrics.scroll.height,
|
||||
'Scroll height equality.'
|
||||
);
|
||||
|
||||
*/
|
||||
should.equal(
|
||||
osInstance.state()._overflowAmount.w,
|
||||
comparisonMetrics.scroll.width,
|
||||
|
||||
+4
-4
@@ -74,10 +74,10 @@ body {
|
||||
display: block;
|
||||
position: absolute;
|
||||
border: 2px dotted red;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
top: 0.5px;
|
||||
right: 0.5px;
|
||||
bottom: 0.5px;
|
||||
left: 0.5px;
|
||||
z-index: 2;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user