Neither example is correct. A subordinate clause can't constitute a sentence without a main clause . When + ing is correct in a temporal clause equivalent: He fell asleep when/while read ing a book.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.