rem: return pos < last * offset + cardsize ? last : -1; 
add: return pos < numVisible * offset + cardsize ? last : -1; 
context:   _getTargetCardVisualIndex: function(event, numVisible) {    var pos, offset, cardsize;    if(this._hOffset) {      pos = event.pageX - this._canvas.offsetLeft;      offset = this._hOffset;      cardsize = gCardHeight;    } else {      pos = event.pageY - this._canvas.offsetTop;      offset = this._vOffset;      cardsize = gCardWidth;    }    const ix = Math.floor(pos / offset);    const last = numVisible - 1;    if(ix <= last) return ix;    return pos < last * offset + cardsize ? last : -1;  }
meta: 3385	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/3385/87ce73bf1820a3c12b6644edd714b763419ba292/lib-views.js/clean/code/lib-views.js