Which hand? And exactly where is the swelling? Dorsum or ulnar/radial side?

Sounds like a problem with the synovial sheath. Some form of synovitis or synovial cyst. Can't tell based on the description of the swelling alone.