Employee claims he was tramming bolter and put his right hand on top edge of canopy on cab while trying to see where he was going. Machine was getting stuck on material and he trammed machine while right hand was on canopy. Machine went against rib, catching right thumb between canopy and rib.