Added partial reveal based on maximumPan and fixed sample trigger