mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2025-01-11 04:27:40 +01:00
Jsdoc fix
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
parent
da715c70b0
commit
aee135a6cd
@ -87,7 +87,7 @@ class ItemRange {
|
|||||||
* Check if this range intersects with another range
|
* Check if this range intersects with another range
|
||||||
* @param {ItemRange} range The range to check against
|
* @param {ItemRange} range The range to check against
|
||||||
* @param {ScrollDirection} scrollDirection
|
* @param {ScrollDirection} scrollDirection
|
||||||
* @returns {Boolean}
|
* @returns {boolean}
|
||||||
*/
|
*/
|
||||||
intersects(range) {
|
intersects(range) {
|
||||||
return !!Math.max(0, Math.min(this.lastIndex, range.lastIndex) - Math.max(this.topCount, range.topCount));
|
return !!Math.max(0, Math.min(this.lastIndex, range.lastIndex) - Math.max(this.topCount, range.topCount));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user