The flow of the sentence is not very logical to me. You can use either the infinitive or the gerund as the object. This is what I would say: I'll leave you now for an hour, so you may continue painting (to paint) your wall.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.
AnonymousHowever, I'd say this sentence as following:I'll see you in / within an hour, while you may be continuing to paint your wall. RegardsYour suggestion "while you may be continuing to paint your wall" doesn't work.