Simplified the way that invert_range calculates selected indices
Simplified the way that invert_range calculates selected indices

bloomberg/bqplot,SylvainCorlay/bqplot,ChakriCherukuri/bqplot,ssunkara1/bqplot,rmenegaux/bqplot,ChakriCherukuri/bqplot,ssunkara1/bqplot,dmadeka/bqplot,SylvainCorlay/bqplot,SylvainCorlay/bqplot,dmadeka/bqplot,bloomberg/bqplot,bloomberg/bqplot,ChakriCherukuri/bqplot,rmenegaux/bqplot