Add margin to appearance detection
Add event triggering from outside of app
Merge pull request #6 from shin1ohno/EventTrigger

Event trigger